changed type of Comment.created from int (timestamp) to datetime.datetime

This commit is contained in:
Tristan Lee
2022-04-12 23:50:07 -05:00
parent d45246d5d6
commit b18e5591fa

View File

@@ -238,7 +238,7 @@ def process_raw_comment_info(raw_comment_info: dict) -> Comment:
return 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'),
video_claim_id = raw_comment_info['claim_id'],
channel_id = raw_comment_info['channel_id'],