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