Auto-format code with Ruff using pyproject.toml

This commit is contained in:
GitHub Actions
2025-01-23 08:40:44 +00:00
parent 56af0a7885
commit 07d14a301b
+1 -6
View File
@@ -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