@ -82,11 +82,12 @@ def get_subreddit_threads():
try :
try :
content [ " thread_url " ] = submission . url
content [ " thread_url " ] = submission . url
content [ " thread_title " ] = submission . title
content [ " thread_title " ] = submission . title
# ontent["thread_content"] = submission.content
# c ontent["thread_content"] = submission.content
content [ " comments " ] = [ ]
content [ " comments " ] = [ ]
for top_level_comment in submission . comments :
for top_level_comment in submission . comments :
if not top_level_comment . stickied and top_level_comment . removed_by_category is not None : # see https://github.com/JasonLovesDoggo/RedditVideoMakerBot/issues/78
if top_level_comment . body in [ " [removed] " , " [deleted] " ] :
continue # # see https://github.com/JasonLovesDoggo/RedditVideoMakerBot/issues/78
if not top_level_comment . stickied :
if len ( top_level_comment . body ) < = int ( environ [ " MAX_COMMENT_LENGTH " ] ) :
if len ( top_level_comment . body ) < = int ( environ [ " MAX_COMMENT_LENGTH " ] ) :
content [ " comments " ] . append (
content [ " comments " ] . append (
{
{