Update tasks.py

This commit is contained in:
Mr Chen 2024-11-05 02:35:36 +08:00
parent 1a3972fa21
commit a09a9d5889
1 changed files with 2 additions and 2 deletions

View File

@ -98,8 +98,8 @@ def getTaskRunPage(
start = (page - 1) * size
limit = str(start) + ',' + str(size)
task_list = mw.M('tasks').where('', ()).field(__FIELD).limit(limit).order('id desc').select()
count = mw.M('tasks').where('', ()).count()
task_list = mw.M('tasks').where('status!=?', (1,)).field(__FIELD).limit(limit).order('id desc').select()
count = mw.M('tasks').where('status!=?', (1,)).count()
rdata = {}
rdata['list'] = task_list