fixed import errors

pull/418/head
Jason 3 years ago
parent a923b2c9e7
commit 2eac16f29d

@ -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):

Loading…
Cancel
Save