1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-09-11 16:22:24 +02:00

Revert accidental change of comment.id to comment.unique_id

This commit is contained in:
André Koch-Kramer 2018-08-23 16:20:42 +02:00
parent 43f52198ff
commit 158c1433bb

View File

@ -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()}