From 2eac16f29d7daa3b83c0772a2dca19851d291fef Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 8 Jun 2022 17:15:08 -0400 Subject: [PATCH] fixed import errors --- utils/subreddit.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/utils/subreddit.py b/utils/subreddit.py index 7fd7117..02302b4 100644 --- a/utils/subreddit.py +++ b/utils/subreddit.py @@ -1,5 +1,8 @@ -from typings import List -def get_hottest_undone(submissions: List): +import json +from typing import List + + +def get_subreddit_undone(submissions: List, subreddit): """ recursively checks if the top submission in the list was already done. """ @@ -9,7 +12,7 @@ def get_hottest_undone(submissions: List): if already_done(done_videos, submission): continue return submission - return get_subreddit_undone(subreddit.top(time_filter="hour")) # all of the videos in hot have already been done + return get_subreddit_undone(subreddit.top(time_filter="hour"), subreddit) # all of the videos in hot have already been done def already_done(done_videos: list, submission):