Formatted with python-black
This commit is contained in:
1 parent
dba11ea1e3
commit
69f4f59bb6
11 files changed
+95
-59
No files matched your search
+8
-8
@@ -105,13 +105,13 @@ def get_subreddit_threads():
|
||||
continue # # see https://github.com/JasonLovesDoggo/RedditVideoMakerBot/issues/78
|
||||
if not top_level_comment.stickied:
|
||||
if len(top_level_comment.body) <= int(try_env("MAX_COMMENT_LENGTH", 500)):
|
||||
if not top_level_comment.author == None:
|
||||
content["comments"].append(
|
||||
{
|
||||
"comment_body": top_level_comment.body,
|
||||
"comment_url": top_level_comment.permalink,
|
||||
"comment_id": top_level_comment.id,
|
||||
}
|
||||
)
|
||||
if not top_level_comment.author == None:
|
||||
content["comments"].append(
|
||||
{
|
||||
"comment_body": top_level_comment.body,
|
||||
"comment_url": top_level_comment.permalink,
|
||||
"comment_id": top_level_comment.id,
|
||||
}
|
||||
)
|
||||
print_substep("Received subreddit threads Successfully.", style="bold green")
|
||||
return content
|
||||
Reference in new issue
Block a user