fixed looping over same postid
This commit is contained in:
1 parent
2043827589
commit
489effa055
1 file changed
-7
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user