From fed4a4ae48c2b96c6599e97d3e9a63bf6e93d042 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 5 Nov 2024 01:20:54 +0800 Subject: [PATCH] Update tasks.py --- web/thisdb/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/thisdb/tasks.py b/web/thisdb/tasks.py index 10a8f5150..f7f1b64a9 100644 --- a/web/thisdb/tasks.py +++ b/web/thisdb/tasks.py @@ -68,7 +68,7 @@ def getTaskPage( ): start = (page - 1) * size limit = str(start) + ',' + str(size) - task_list = mw.M('tasks').where('', ()).field(__FIELD).limit(limit).order('id desc').select() + task_list = mw.M('tasks').where('', ()).field(__FIELD).limit(limit).order('id asc').select() count = mw.M('tasks').where('', ()).count() rdata = {}