From b18e5591fa4f903e5506742c2e3f17d45bb88755 Mon Sep 17 00:00:00 2001 From: Tristan Lee Date: Tue, 12 Apr 2022 23:50:07 -0500 Subject: [PATCH] changed type of Comment.created from int (timestamp) to datetime.datetime --- polyphemus/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polyphemus/base.py b/polyphemus/base.py index 533d44c..a9588da 100644 --- a/polyphemus/base.py +++ b/polyphemus/base.py @@ -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'],