Commit c4e041d0 authored by wanli's avatar wanli

update

parent 3b01a086
......@@ -94,7 +94,7 @@ class AppsManager(object):
temp.append(item.to_dict(only=["uuid", "app_name"]))
return temp, len(temp), "get app {}.".format("success" if temp else "fail")
result = Apps.select().where(**temp).order_by(desc(Apps.sort)).page(data.get("pagenum", 1), pagesize=data.get("pagesize", 10))
result = Apps.select().where(**temp).order_by(Apps.sort).page(data.get("pagenum", 1), pagesize=data.get("pagesize", 10))
count = Apps.select().where(**temp).count()
if result and len(result):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment