From aa384fd805ddc2dbc4bf388da0e47f0a02eae8fb Mon Sep 17 00:00:00 2001 From: PatatjeMC Date: Thu, 9 Jun 2022 16:02:19 +0200 Subject: [PATCH] Revert "fixed a name thingy that gave errors" This reverts commit c028c73ace63f17338cad473d214dc173e621553. --- reddit/subreddit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reddit/subreddit.py b/reddit/subreddit.py index efbee8a..cc5bc02 100644 --- a/reddit/subreddit.py +++ b/reddit/subreddit.py @@ -5,7 +5,7 @@ import praw from utils.console import print_step, print_substep from utils.videos import check_done -from utils.subreddit import get_subreddit_undone +from utils.subreddit import get_hottest_undone TEXT_WHITELIST = set("abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890") @@ -60,7 +60,7 @@ def get_subreddit_threads(): submission = reddit.submission(id=getenv("POST_ID")) else: threads = subreddit.hot(limit=25) - submission = get_subreddit_undone(threads, subreddit) + submission = get_hottest_undone(threads) submission = check_done(submission) # double checking if submission is None: return get_subreddit_threads() # submission already done. rerun