less-logs-auth
All checks were successful
deploy / deploy (push) Successful in 1m25s

This commit is contained in:
2023-12-17 15:27:26 +03:00
parent 49fe665d4d
commit 5bac172cce
2 changed files with 12 additions and 6 deletions

View File

@@ -94,7 +94,11 @@ async def get_my_followed(_, info):
with local_session() as session:
author = session.query(Author).filter(Author.user == user_id).first()
if author:
authors_query = select(Author).join(AuthorFollower).filter(AuthorFollower.follower == author.id)
authors_query = (
select(Author)
.join(AuthorFollower, AuthorFollower.follower == Author.id)
.filter(AuthorFollower.follower == author.id)
)
topics_query = select(Topic).join(TopicFollower).filter(TopicFollower.follower == author.id)