This commit is contained in:
parent
88a0d58751
commit
ce736e2624
|
@ -93,8 +93,10 @@ def query_follows(user_id: str):
|
|||
author = (
|
||||
session.query(Author).filter(Author.user == user_id).first()
|
||||
)
|
||||
|
||||
if isinstance(author, Author):
|
||||
author_id = author.id
|
||||
session.commit()
|
||||
authors_query = (
|
||||
select(Author)
|
||||
.join(AuthorFollower, AuthorFollower.follower == author_id)
|
||||
|
|
Loading…
Reference in New Issue
Block a user