session-commit-fix
Some checks failed
Deploy to core / deploy (push) Failing after 1m15s

This commit is contained in:
Untone 2024-02-22 21:10:43 +03:00
parent 88a0d58751
commit ce736e2624

View File

@ -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)