From 158c1433bbfdff9ce94ddedb856e8e363bc3d98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Koch-Kramer?= Date: Thu, 23 Aug 2018 16:20:42 +0200 Subject: [PATCH] Revert accidental change of comment.id to comment.unique_id --- instaloader/instaloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instaloader/instaloader.py b/instaloader/instaloader.py index 9c4c614..9c7e976 100644 --- a/instaloader/instaloader.py +++ b/instaloader/instaloader.py @@ -190,7 +190,7 @@ class Instaloader: def update_comments(self, filename: str, post: Post) -> None: def _postcomment_asdict(comment): - return {'id': comment.unique_id, + return {'id': comment.id, 'created_at': int(comment.created_at_utc.replace(tzinfo=timezone.utc).timestamp()), 'text': comment.text, 'owner': comment.owner._asdict()}