.c
All checks were successful
Deploy on push / deploy (push) Successful in 24s

This commit is contained in:
Untone 2024-02-28 18:15:19 +03:00
parent ac1fc151ab
commit 7a3ce4a982

View File

@ -465,7 +465,7 @@ async def load_shouts_random_topic(_, info, limit: int = 10):
q = (
select(Shout, Topic)
.join(Shout.topics)
.join(random_topic_subquery, Topic.id == random_topic_subquery.id)
.join(random_topic_subquery, Topic.id == random_topic_subquery.c.id)
.options(joinedload(Shout.authors))
.filter(
and_(