|
@@ -132,8 +132,6 @@ async def get_birthdays(peer_id):
|
|
|
|
|
|
async def add_or_update_birthday(peer_id, user, date):
|
|
|
birthday = await BirthDay.filter(peer_id=peer_id, user_id=user.id).first()
|
|
|
- if birthday:
|
|
|
- return False
|
|
|
|
|
|
await BirthDay(
|
|
|
peer_id=peer_id,
|
|
@@ -141,4 +139,4 @@ async def add_or_update_birthday(peer_id, user, date):
|
|
|
date=date
|
|
|
).save()
|
|
|
|
|
|
- return True
|
|
|
+ return birthday is not None
|