From 9782cf402e89e0fcdc2d5c7fd44c809a5499e830 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 23 Jan 2024 01:21:01 +0300 Subject: [PATCH] create-reaction-fix-7 --- resolvers/reaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/reaction.py b/resolvers/reaction.py index c57d20c5..48764795 100644 --- a/resolvers/reaction.py +++ b/resolvers/reaction.py @@ -96,7 +96,7 @@ def is_published_author(session, author_id): """checks if author has at least one publication""" return ( session.query(Shout) - .where(Shout.authors.any(author_id)) + .where(Shout.authors.any(id=author_id)) .filter(and_(Shout.published_at != "", Shout.deleted_at.is_(None))) .count() > 0