fixed import errors

This commit is contained in:
Jason committed 2022-06-08 17:15:08 -04:00
1 parent a923b2c9e7
commit 2eac16f29d
1 file changed
+6 -3
+6 -3
View File
@@ -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):