This commit is contained in:
2023-05-24 21:40:18 +02:00
parent 0069498708
commit 09123aa954

View File

@@ -31,7 +31,7 @@ async def is_need_send(chat_id: int) -> bool:
@donation_notifications_router.post("/{chat_id}") @donation_notifications_router.post("/{chat_id}")
async def mark_sended(chat_id: int): async def mark_sended(chat_id: int):
notification, created = await ChatDonateNotification.objects.get_or_create( notification, created = await ChatDonateNotification.objects.get_or_create(
_default={"sended": datetime.now()}, chat_id=chat_id {"sended": datetime.now()}, chat_id=chat_id
) )
if created: if created: