Skip to content

Commit

Permalink
fix no sleep schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerScripts committed Jan 12, 2021
1 parent 8bfcec8 commit 635ad4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bots/reddit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def should_we_sleep():
# check if any of the time between checks returned true.
# if there's a True in the list, it means we're between one of the scheduled times
# and so this function returns False so the bot doesn't sleep
if True in CHECKS:
if True in CHECKS or not CONFIG.get('reddit_sleep_schedule'):
# no need to sleep - the bot is within one of the time ranges
return False
else:
Expand Down

0 comments on commit 635ad4b

Please sign in to comment.