stickied comments will never be used again

see
https://github.com/elebumm/RedditVideoMakerBot/pull/290
pull/418/head
Jason 3 years ago
parent b555b9ce4e
commit 4d4cfdcd98

@ -65,10 +65,11 @@ def get_subreddit_threads():
content["comments"] = [] content["comments"] = []
for top_level_comment in submission.comments: for top_level_comment in submission.comments:
if len(top_level_comment.body) <= int(environ["MAX_COMMENT_LENGTH"]): if not top_level_comment.stickied:
content["comments"].append( if len(top_level_comment.body) <= int(environ["MAX_COMMENT_LENGTH"]):
{"comment_body": top_level_comment.body, "comment_url": top_level_comment.permalink, content["comments"].append(
"comment_id": top_level_comment.id, }) {"comment_body": top_level_comment.body, "comment_url": top_level_comment.permalink,
"comment_id": top_level_comment.id, })
except AttributeError as e: except AttributeError as e:
pass pass
print_substep("Received subreddit threads Successfully.", style="bold green") print_substep("Received subreddit threads Successfully.", style="bold green")

Loading…
Cancel
Save