fix accidentially deleted @property 🤡

pull/83/head
Aevann 2022-12-22 22:58:27 +02:00
parent e6274e06f3
commit 5d09ef1103
1 changed files with 1 additions and 0 deletions

View File

@ -470,6 +470,7 @@ class User(Base):
def age(self):
return int(time.time()) - self.created_utc
@property
@lazy
def follow_count(self):
return g.db.query(Follow).filter_by(user_id=self.id).count()