Исправлено исключение в проверке дней рождения.
This commit is contained in:
parent
9b96e801ea
commit
827a8bdf3f
1 changed files with 1 additions and 1 deletions
2
tasks.py
2
tasks.py
|
|
@ -30,7 +30,7 @@ async def check_birthdays(api: API):
|
|||
if member.id < 0 or member.bdate is None:
|
||||
continue
|
||||
|
||||
user = database.DB.get_user(chat_id, member.id)
|
||||
user = database.create_user_if_not_exists(chat_id, member.id)
|
||||
if user['happy_birthday'] == 0:
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue