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