|
|
|
@ -66,21 +66,18 @@ def get_subreddit_threads():
|
|
|
|
|
content["comments"] = []
|
|
|
|
|
|
|
|
|
|
for top_level_comment in submission.comments:
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
COMMENT_LENGTH_RANGE = [0, Infinity]
|
|
|
|
|
if os.getenv("COMMENT_LENGTH_RANGE"):
|
|
|
|
|
COMMENT_LENGTH_RANGE = [int(i) for i in os.getenv("COMMENT_LENGTH_RANGE").split(",")]
|
|
|
|
|
if COMMENT_LENGTH_RANGE[0] <= len(top_level_comment.body) <= COMMENT_LENGTH_RANGE[1]:
|
|
|
|
|
=======
|
|
|
|
|
if not top_level_comment.stickied:
|
|
|
|
|
>>>>>>> upstream/master
|
|
|
|
|
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.stickied:
|
|
|
|
|
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
|
|
|
|
|