parser-fix
All checks were successful
Deploy on push / deploy (push) Successful in 1m9s

This commit is contained in:
2024-06-11 14:46:10 +03:00
parent 8708efece2
commit b2fdc9a453
3 changed files with 5 additions and 9 deletions

View File

@@ -114,8 +114,7 @@ async def load_authors_by(_, _info, by, limit, offset):
authors_query = authors_query.filter(Author.name.ilike(f"%{by['name']}%"))
elif by.get("topic"):
authors_query = (
authors_query
.join(ShoutAuthor) # Первое соединение ShoutAuthor
authors_query.join(ShoutAuthor) # Первое соединение ShoutAuthor
.join(ShoutTopic, ShoutAuthor.shout == ShoutTopic.shout)
.join(Topic, ShoutTopic.topic == Topic.id)
.filter(Topic.slug == str(by["topic"]))