From 343c60f608c1a59c13367b091f19cf4695d7765a Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 21 Aug 2025 12:00:46 +0300 Subject: [PATCH] notifications-fix --- resolvers/notifier.py | 1 - 1 file changed, 1 deletion(-) diff --git a/resolvers/notifier.py b/resolvers/notifier.py index 6e138aeb..368a9bb2 100644 --- a/resolvers/notifier.py +++ b/resolvers/notifier.py @@ -36,7 +36,6 @@ def query_notifications(author_id: int, after: int = 0) -> tuple[int, int, list[ # Convert Unix timestamp to datetime for PostgreSQL compatibility after_datetime = datetime.fromtimestamp(after, tz=UTC) q = q.where(Notification.created_at > after_datetime) - q = q.group_by(NotificationSeen.notification, Notification.created_at) with local_session() as session: # Build query conditions