mgt c8 checkpoint after tests

This commit is contained in:
2024-08-04 05:48:02 -07:00
parent 469785ee33
commit 63bdf8d164
3 changed files with 93 additions and 3 deletions

View File

@ -89,7 +89,7 @@ class User(UserMixin, db.Model):
.join(Post.author.of_type(Author))
.join(Author.followers.of_type(Follower), isouter=True)
.where(sa.or_(
Follower.id == self.id
Follower.id == self.id,
Author.id == self.id
))
.group_by(Post)