fix empty user

This commit is contained in:
Bhupesh-V 2024-08-15 16:17:47 +05:30
parent 24be5dcd82
commit 7c90a350e9

View File

@ -73,7 +73,7 @@ def get_post_data(reddit, post_url):
submission.created_utc submission.created_utc
).isoformat(), ).isoformat(),
"flair_text": submission.link_flair_text, "flair_text": submission.link_flair_text,
"author": submission.author.name, "author": submission.author.name if submission.author else "",
} }
return post return post