This commit is contained in:
Aevann1 2022-01-14 01:29:15 +02:00
parent 6fbe3017d3
commit fbe6c3dd26
20 changed files with 49 additions and 33 deletions

View file

@ -561,6 +561,11 @@ class User(Base):
def applications(self):
return g.db.query(OauthApp).filter_by(author_id=self.id).order_by(OauthApp.id)
@property
@lazy
def created_datetime(self):
return str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(self.created_utc)))
@lazy
def subscribed_idlist(self, page=1):
posts = g.db.query(Subscription.submission_id).filter_by(user_id=self.id).all()