fsdsf
This commit is contained in:
parent
7a567de4a9
commit
447ae44a4f
6 changed files with 89 additions and 67 deletions
|
@ -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())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue