fix 500 errror

master
Aevann 2023-07-08 02:04:21 +03:00
parent b84b571473
commit 8b59589804
1 changed files with 1 additions and 1 deletions

View File

@ -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())