fix: tariff selection in admin panel and key operation

This commit is contained in:
Capybara-z
2025-07-19 23:16:46 +03:00
parent 315459ed2e
commit d701ce31c8
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -657,7 +657,7 @@ async def handle_user_choose_tariff(
await state.set_state(RenewTariffState.selecting_tariff)
result = await session.execute(
select(Tariff).where(Tariff.group_code == group_code, Tariff.is_active is True).order_by(Tariff.id)
select(Tariff).where(Tariff.group_code == group_code, Tariff.is_active.is_(True)).order_by(Tariff.id)
)
tariffs = result.scalars().all()