From 07d14a301bdab434b4ae3de8fa17aa962482916b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 23 Jan 2025 08:40:44 +0000 Subject: [PATCH] Auto-format code with Ruff using pyproject.toml --- database.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/database.py b/database.py index e1304589..11530a4f 100644 --- a/database.py +++ b/database.py @@ -1409,8 +1409,6 @@ async def update_coupon_usage_count(coupon_id: int, session: Any): raise - - async def get_last_payments(tg_id: int, session: Any): """ Получает последние 3 платежа пользователя. @@ -1434,13 +1432,10 @@ async def get_last_payments(tg_id: int, session: Any): ORDER BY created_at DESC LIMIT 3 """, - tg_id + tg_id, ) logger.info(f"Успешно получены последние платежи для пользователя {tg_id}") return records except Exception as e: logger.error(f"Ошибка при получении последних платежей для пользователя {tg_id}: {e}") raise - - -