Update tasks.py

This commit is contained in:
Mr Chen 2024-11-05 01:20:54 +08:00
parent f217c07d12
commit fed4a4ae48
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {}