This commit is contained in:
Aevann1 2021-10-02 13:34:37 +02:00
parent 8b08e65b23
commit 4fb654a56a
9 changed files with 26 additions and 29 deletions

View file

@ -37,7 +37,7 @@ class OauthApp(Base):
def permalink(self): return f"/admin/app/{self.id}"
@lazy
def idlist(self, page=1, **kwargs):
def idlist(self, page=1):
posts = g.db.query(Submission.id).options(lazyload('*')).filter_by(app_id=self.id)
@ -48,7 +48,7 @@ class OauthApp(Base):
return [x[0] for x in posts.all()]
@lazy
def comments_idlist(self, page=1, **kwargs):
def comments_idlist(self, page=1):
posts = g.db.query(Comment.id).options(lazyload('*')).filter_by(app_id=self.id)