style: ruff format

This commit is contained in:
Fringg
2026-03-18 05:53:31 +03:00
parent fddf8ef5eb
commit 6920e3a0fb
3 changed files with 6 additions and 4 deletions
+6 -2
View File
@@ -351,7 +351,9 @@ async def get_payments_stats(
@router.get('/search', response_model=PendingPaymentListResponse)
async def search_payments_endpoint(
search: str | None = Query(None, max_length=256, description='Search query (invoice, @username, telegram_id, email)'),
search: str | None = Query(
None, max_length=256, description='Search query (invoice, @username, telegram_id, email)'
),
status_filter: str = Query('all', description='Status filter: all, pending, paid, cancelled'),
method_filter: str | None = Query(None, description='Filter by payment method'),
period: str = Query('24h', description='Period preset: 24h, 7d, 30d, all'),
@@ -419,7 +421,9 @@ async def search_payments_endpoint(
@router.get('/search/stats', response_model=SearchStatsResponse)
async def search_payments_stats_endpoint(
search: str | None = Query(None, max_length=256, description='Search query (invoice, @username, telegram_id, email)'),
search: str | None = Query(
None, max_length=256, description='Search query (invoice, @username, telegram_id, email)'
),
status_filter: str = Query('all', description='Status filter: all, pending, paid, cancelled'),
method_filter: str | None = Query(None, description='Filter by payment method'),
period: str = Query('24h', description='Period preset: 24h, 7d, 30d, all'),
-1
View File
@@ -245,7 +245,6 @@ async def start_severpay_topup(
)
@error_handler
async def process_severpay_quick_amount(
callback: types.CallbackQuery,
-1
View File
@@ -1221,7 +1221,6 @@ def create_payment_router(bot: Bot, payment_service: PaymentService) -> APIRoute
routes_registered = True
if routes_registered:
@router.get('/health/payment-webhooks')