From 489effa0556b4094b250e49e0585cccdf681f445 Mon Sep 17 00:00:00 2001 From: electro199 Date: Fri, 2 Dec 2022 14:55:53 +0500 Subject: [PATCH] fixed looping over same postid --- reddit/subreddit.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/reddit/subreddit.py b/reddit/subreddit.py index edc12bf..1dfa882 100644 --- a/reddit/subreddit.py +++ b/reddit/subreddit.py @@ -76,13 +76,6 @@ def get_subreddit_threads(POST_ID: str): if POST_ID: # would only be called if there are multiple queued posts submission = reddit.submission(id=POST_ID) - # elif ( - # settings.config["reddit"]["thread"]["post_id"] - # and len(str(settings.config["reddit"]["thread"]["post_id"]).split("+")) == 1 - # ): - # submission = reddit.submission( - # id=settings.config["reddit"]["thread"]["post_id"] - # ) else: threads = subreddit.hot(limit=25) submission = get_subreddit_undone(threads, subreddit)