qd-today / qd

QD [v20240210] —— HTTP请求定时任务自动执行框架 base on HAR Editor and Tornado Server
https://qd-today.github.io/qd/
MIT License
4.2k stars 546 forks source link

[Bug] 先删除模板的话无法批量删除 #526

Open Ovler-Young opened 4 months ago

Ovler-Young commented 4 months ago

Verify steps

QD Version

20240210

Bug on OS

Windows

Bug on Platform

Docker/Linux 64位

To Reproduce

  1. 新建一个任务
  2. 将这个任务所用的模板删除
  3. 选择改任务
  4. 使用多任务操作进行删除
  5. 报错

Describe the Bug

报错: 获取信息失败 'NoneType' object is not subscriptable

QD config

No response

QD log

后台无报错。

[I 240503 18:08:33 tornado.access web:2348] 200 GET /task/1/multi?op=delete (89.***) 1.35ms
[I 240503 18:08:33 tornado.access web:2348] 200 POST /task/1/get_tasksinfo (89.***) 24.10ms
[I 240503 18:08:35 tornado.access web:2348] 200 GET /my/ (89.***) 58.95ms

Expected behavior

能正常删除

Screenshots

image

另:复现步骤还未测试

Ovler-Young commented 4 months ago

应该是这里附近 https://github.com/qd-today/qd/blob/cac1aaadd75a7ee24e7a7603ec7bbe5d314859f2/web/handlers/task_multi.py#L150-L154