From ef2f8dca82b9a2ee779ba984377ab4a0715c65db Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 27 Feb 2024 11:22:48 +0300 Subject: [PATCH] compound-select-fix-2 --- services/event_listeners.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/event_listeners.py b/services/event_listeners.py index df12574c..d77f095d 100644 --- a/services/event_listeners.py +++ b/services/event_listeners.py @@ -75,8 +75,8 @@ def after_reaction_insert(mapper, connection, reaction: Reaction): .where(Reaction.id == reaction.reply_to) ) - author_query = select(author_subquery).select_from(author_subquery.subquery()).union( - select(replied_author_subquery).select_from(replied_author_subquery.subquery()) + author_query = select(author_subquery.subquery()).select_from(author_subquery.subquery()).union( + select(replied_author_subquery.subquery()).select_from(replied_author_subquery.subquery()) ) authors = get_with_stat(author_query)