mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
space consistency
This commit is contained in:
1 file changed
+5
-5
@@ -41,14 +41,14 @@ class Birthday(commands.Cog):
|
||||
async def birthday_check(self):
|
||||
"""Check if it's someone's birthday every day at midgnight and send a greeting if it is."""
|
||||
|
||||
await asyncio.sleep(1) # Prevent sending message before date has really changed
|
||||
await asyncio.sleep(1) # Prevent sending message before date has really changed
|
||||
|
||||
self.cursor.execute(
|
||||
"""
|
||||
SELECT *
|
||||
FROM birthdays
|
||||
WHERE EXTRACT(MONTH FROM birthday) = EXTRACT(MONTH FROM current_date)
|
||||
AND EXTRACT(DAY FROM birthday) = EXTRACT(DAY FROM current_date);
|
||||
SELECT *
|
||||
FROM birthdays
|
||||
WHERE EXTRACT(MONTH FROM birthday) = EXTRACT(MONTH FROM current_date)
|
||||
AND EXTRACT(DAY FROM birthday) = EXTRACT(DAY FROM current_date);
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user