forked from rDrama/rDrama
fix accidentially deleted @property 🤡
parent
e6274e06f3
commit
5d09ef1103
|
@ -470,6 +470,7 @@ class User(Base):
|
||||||
def age(self):
|
def age(self):
|
||||||
return int(time.time()) - self.created_utc
|
return int(time.time()) - self.created_utc
|
||||||
|
|
||||||
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def follow_count(self):
|
def follow_count(self):
|
||||||
return g.db.query(Follow).filter_by(user_id=self.id).count()
|
return g.db.query(Follow).filter_by(user_id=self.id).count()
|
||||||
|
|
Loading…
Reference in New Issue