dfssfd
This commit is contained in:
parent
8b08e65b23
commit
4fb654a56a
9 changed files with 26 additions and 29 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue