Refactor database notification query to remove unnecessary string conversion for hours parameter, improving data handling efficiency.

This commit is contained in:
Zakhar Izmaylov
2024-11-24 20:48:16 +03:00
parent fa17dea8fe
commit e76af1948b
+1 -1
View File
@@ -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,
)