Merge branch 'master' into master

pull/418/head
Jason 3 years ago committed by GitHub
commit 23835fa625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,7 @@
from typing import List from typing import List
import json import json
def get_hottest_undone(submissions: 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.
""" """
@ -10,7 +11,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