fd
This commit is contained in:
parent
84a101b022
commit
98738954a5
7 changed files with 54 additions and 10 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue