mirror of
https://github.com/bellingcat/polyphemus.git
synced 2026-06-13 05:48:31 +03:00
changed type of Comment.created from int (timestamp) to datetime.datetime
This commit is contained in:
@@ -238,7 +238,7 @@ def process_raw_comment_info(raw_comment_info: dict) -> Comment:
|
|||||||
|
|
||||||
return Comment(
|
return Comment(
|
||||||
text = raw_comment_info['comment'],
|
text = raw_comment_info['comment'],
|
||||||
created = raw_comment_info['timestamp'],
|
created = datetime.fromtimestamp(int(raw_comment_info['timestamp'])),
|
||||||
claim_id = raw_comment_info.get('comment_id'),
|
claim_id = raw_comment_info.get('comment_id'),
|
||||||
video_claim_id = raw_comment_info['claim_id'],
|
video_claim_id = raw_comment_info['claim_id'],
|
||||||
channel_id = raw_comment_info['channel_id'],
|
channel_id = raw_comment_info['channel_id'],
|
||||||
|
|||||||
Reference in New Issue
Block a user