This commit is contained in:
Aevann1 2021-09-23 01:41:51 +02:00
parent 7a567de4a9
commit 447ae44a4f
6 changed files with 89 additions and 67 deletions

View file

@ -39,7 +39,7 @@ class OauthApp(Base):
@lazy
def idlist(self, page=1, **kwargs):
posts = g.db.query(Submission.id).options(lazyload('*')).options(lazyload('*')).filter_by(app_id=self.id)
posts = g.db.query(Submission.id).options(lazyload('*')).filter_by(app_id=self.id)
posts=posts.order_by(Submission.created_utc.desc())
@ -50,7 +50,7 @@ class OauthApp(Base):
@lazy
def comments_idlist(self, page=1, **kwargs):
posts = g.db.query(Comment.id).options(lazyload('*')).options(lazyload('*')).filter_by(app_id=self.id)
posts = g.db.query(Comment.id).options(lazyload('*')).filter_by(app_id=self.id)
posts=posts.order_by(Comment.created_utc.desc())