Revert accidental change of comment.id to comment.unique_id
This commit is contained in:
parent
43f52198ff
commit
158c1433bb
@ -190,7 +190,7 @@ class Instaloader:
|
|||||||
|
|
||||||
def update_comments(self, filename: str, post: Post) -> None:
|
def update_comments(self, filename: str, post: Post) -> None:
|
||||||
def _postcomment_asdict(comment):
|
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()),
|
'created_at': int(comment.created_at_utc.replace(tzinfo=timezone.utc).timestamp()),
|
||||||
'text': comment.text,
|
'text': comment.text,
|
||||||
'owner': comment.owner._asdict()}
|
'owner': comment.owner._asdict()}
|
||||||
|
Loading…
Reference in New Issue
Block a user