Update subreddit.py

This commit is contained in:
null3000 authored and GitHub committed 2022-06-10 23:15:19 +02:00
1 parent 41ebf3b5e5
commit 054cc84186
1 file changed
+8 -7
+8 -7
View File
@@ -67,13 +67,14 @@ def get_subreddit_threads():
for top_level_comment in submission.comments:
if not top_level_comment.stickied:
content["comments"].append(
{
"comment_body": top_level_comment.body,
"comment_url": top_level_comment.permalink,
"comment_id": top_level_comment.id,
}
)
if not comment.author == None:
content["comments"].append(
{
"comment_body": top_level_comment.body,
"comment_url": top_level_comment.permalink,
"comment_id": top_level_comment.id,
}
)
except AttributeError as e:
pass