This commit is contained in:
Aevann1 2022-01-02 02:05:22 +02:00
parent 84a101b022
commit 98738954a5
7 changed files with 54 additions and 10 deletions

View file

@ -267,6 +267,11 @@ class User(Base):
return [x[0] for x in posts]
@property
@lazy
def follow_count(self):
return g.db.query(Follow.id).filter_by(user_id=self.id).count()
@property
@lazy
def bio_html_eager(self):