From bf460e6a435c0e5878d806cdc1a1314301ee230a Mon Sep 17 00:00:00 2001 From: Vladless Date: Fri, 16 May 2025 15:46:12 +0300 Subject: [PATCH] tariffs order by id --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.py b/database.py index f7d20294..c0d4796c 100644 --- a/database.py +++ b/database.py @@ -1580,7 +1580,7 @@ async def get_tariffs_for_cluster(session, cluster_name: str) -> list[dict]: group_code = row["tariff_group"] rows = await session.fetch( - "SELECT * FROM tariffs WHERE group_code = $1 AND is_active = TRUE ORDER BY duration_days", + "SELECT * FROM tariffs WHERE group_code = $1 AND is_active = TRUE ORDER BY id", group_code, ) return [dict(r) for r in rows]