aboutsummaryrefslogtreecommitdiff
path: root/question_of_the_day
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2023-12-21 09:33:42 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2023-12-21 09:33:42 +0000
commitbc07ad0b13f77f9579970fa1b9dba393e3ff9769 (patch)
tree5858afb5d7910918c789c59b0bb291d03c7aff76 /question_of_the_day
parent3fa08011d38b1d543044ee491cbc008d55306429 (diff)
downloadaps-cogs-bc07ad0b13f77f9579970fa1b9dba393e3ff9769.tar
aps-cogs-bc07ad0b13f77f9579970fa1b9dba393e3ff9769.tar.gz
aps-cogs-bc07ad0b13f77f9579970fa1b9dba393e3ff9769.zip
Format with black
Diffstat (limited to 'question_of_the_day')
-rw-r--r--question_of_the_day/question_of_the_day.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/question_of_the_day/question_of_the_day.py b/question_of_the_day/question_of_the_day.py
index ca3bb5b..1704214 100644
--- a/question_of_the_day/question_of_the_day.py
+++ b/question_of_the_day/question_of_the_day.py
@@ -78,7 +78,9 @@ class QuestionOfTheDay(commands.Cog):
last_posted_datetime = datetime.datetime.fromtimestamp(
last_posted_time, datetime.timezone.utc
)
- if not (hour == last_posted_datetime.hour and minute == last_posted_datetime.minute):
+ if not (
+ hour == last_posted_datetime.hour and minute == last_posted_datetime.minute
+ ):
await post_qotds_for_time(hour, minute)
gap_secs = current_time - (last_posted_time or current_time)