fix permanent ban functionality / fix statistics timezone consistency

This commit is contained in:
Capybara-z
2025-07-10 13:53:34 +03:00
parent c3eb68f325
commit e1e85de286
2 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -1202,7 +1202,7 @@ async def process_user_search(
select(1)
.where(
(ManualBan.tg_id == tg_id)
& (or_(ManualBan.until is None, ManualBan.until > func.now()))
& (or_(ManualBan.until.is_(None), ManualBan.until > func.now()))
)
.limit(1)
)