From c17ff75df7db8131430eb9abee37b7821634d5cc Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 23 Jan 2024 16:26:28 +0300 Subject: [PATCH] NOT-fix --- resolvers/load.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/load.py b/resolvers/load.py index 5f05f05..11cb41d 100644 --- a/resolvers/load.py +++ b/resolvers/load.py @@ -67,7 +67,7 @@ async def get_notifications_grouped(author_id: int, after: int = 0, limit: int = and_( Notification.action == NotificationAction.CREATE.value, Notification.created_at > after, - is_not(Notification.seen) + ~Notification.seen ) ).count() notifications_result = session.execute(query)