From 4b908ce3cf5dfa1289c556d1456b9bf10ce79f4e Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 27 Jan 2026 16:43:51 +0300 Subject: [PATCH] Update messages.py --- app/handlers/admin/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/handlers/admin/messages.py b/app/handlers/admin/messages.py index 7429affb..d281a7b4 100644 --- a/app/handlers/admin/messages.py +++ b/app/handlers/admin/messages.py @@ -1482,7 +1482,7 @@ async def get_target_users_count(db: AsyncSession, target: str) -> int: if target.startswith('custom_'): now = datetime.utcnow() today = now.replace(hour=0, minute=0, second=0, microsecond=0) - criteria = target[len('custom_'):] + criteria = target[len('custom_') :] if criteria == 'today': query = select(sql_func.count(User.id)).where(base_filter, User.created_at >= today)