style: reformatted.
This commit is contained in:
1 parent
a3ec449ee0
commit
dab3e64fef
3 files changed
+14
-8
No files matched your search
+2
-2
@@ -16,8 +16,8 @@ def get_subreddit_undone(submissions: list, subreddit):
|
||||
Any: The submission that has not been done
|
||||
"""
|
||||
# recursively checks if the top submission in the list was already done.
|
||||
if not exists('./video_creation/data/videos.json'):
|
||||
with open('./video_creation/data/videos.json', 'w+') as f:
|
||||
if not exists("./video_creation/data/videos.json"):
|
||||
with open("./video_creation/data/videos.json", "w+") as f:
|
||||
json.dump([], f)
|
||||
with open("./video_creation/data/videos.json", "r", encoding="utf-8") as done_vids_raw:
|
||||
done_videos = json.load(done_vids_raw)
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ def sleep_until(time):
|
||||
|
||||
# Type check
|
||||
if not isinstance(end, (int, float)):
|
||||
raise Exception('The time parameter is not a number or datetime object')
|
||||
raise Exception("The time parameter is not a number or datetime object")
|
||||
|
||||
# Now we wait
|
||||
while True:
|
||||
|
||||
Reference in new issue
Block a user