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