From 3af3fa2c66c23887eb7a3e00636abb1f955a2d7c Mon Sep 17 00:00:00 2001 From: Vladless Date: Tue, 20 May 2025 18:23:46 +0300 Subject: [PATCH] sorted tariffs by id for renew key --- handlers/keys/key_renew.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/keys/key_renew.py b/handlers/keys/key_renew.py index d6b0d929..73976f5e 100644 --- a/handlers/keys/key_renew.py +++ b/handlers/keys/key_renew.py @@ -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, )