forked from MarseyWorld/MarseyWorld
fix 500 errror
parent
b84b571473
commit
8b59589804
|
@ -38,7 +38,7 @@ class OauthApp(Base):
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
def idlist(self, cls, page=1):
|
def idlist(self, cls, page=1):
|
||||||
items = db.query(cls).options(load_only(cls.id)).filter_by(app_id=self.id)
|
items = g.db.query(cls).options(load_only(cls.id)).filter_by(app_id=self.id)
|
||||||
total = items.count()
|
total = items.count()
|
||||||
|
|
||||||
items = items.order_by(cls.created_utc.desc())
|
items = items.order_by(cls.created_utc.desc())
|
||||||
|
|
Loading…
Reference in New Issue