fixed import errors

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

@ -1,5 +1,8 @@
from typings import List import json
def get_hottest_undone(submissions: List): from typing import List
def get_subreddit_undone(submissions: List, subreddit):
""" """
recursively checks if the top submission in the list was already done. 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): if already_done(done_videos, submission):
continue continue
return submission 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): def already_done(done_videos: list, submission):

Loading…
Cancel
Save