From e76af1948b69836d9c347178b8c8bce83f3e7341 Mon Sep 17 00:00:00 2001 From: Zakhar Izmaylov Date: Sun, 24 Nov 2024 20:48:16 +0300 Subject: [PATCH] Refactor database notification query to remove unnecessary string conversion for hours parameter, improving data handling efficiency. --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.py b/database.py index 08b934ce..1585824f 100644 --- a/database.py +++ b/database.py @@ -1151,7 +1151,7 @@ async def check_notification_time(tg_id: int, notification_type: str, hours: int FROM notifications WHERE tg_id = $2 AND notification_type = $3 """, - str(hours), # Преобразуем hours в строку + hours, # Убираем преобразование в строку tg_id, notification_type, )