diff --git a/tasks.py b/tasks.py index 17f3e7b..a5f09ae 100644 --- a/tasks.py +++ b/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