Revert "Revert "Merge pull request #54 from zytomorrow/patch-1""

This reverts commit be327dd1f0.
This commit is contained in:
Faker 2022-10-16 02:38:24 +08:00
parent 23f4d250e0
commit aed12a3572

View File

@ -65,7 +65,7 @@ def get_tasklist() -> list:
def filter_res_sub(tasklist: list) -> tuple:
filter_list = []
res_list = []
for task in tasklist:
for task in tasklist['data']:
for sub in sub_list:
if task.get("command").find(sub) == -1:
flag = False