sorted tariffs by id for renew key

This commit is contained in:
Vladless
2025-05-20 18:23:46 +03:00
parent 819c814c95
commit 3af3fa2c66
+1 -1
View File
@@ -82,7 +82,7 @@ async def process_callback_renew_key(callback_query: CallbackQuery, session: Any
"""
SELECT * FROM tariffs
WHERE group_code = $1 AND is_active = TRUE
ORDER BY duration_days
ORDER BY id
""",
tariff_group,
)