compound-select-fix-2
All checks were successful
Deploy on push / deploy (push) Successful in 23s

This commit is contained in:
Untone 2024-02-27 11:22:48 +03:00
parent a5636af259
commit ef2f8dca82

View File

@ -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)