mirror of
https://github.com/sqlmapproject/sqlmap
synced 2026-01-29 03:22:05 +01:00
Fix - Custom objects cannot be serialized in JSON
Custom objects cannot be serialized in JSON, convert tasks into list before serializing.
This commit is contained in:
parent
4c39235c2f
commit
54a6c01005
1 changed files with 2 additions and 1 deletions
|
|
@ -340,7 +340,8 @@ def task_list(taskid):
|
|||
"""
|
||||
if is_admin(taskid):
|
||||
logger.debug("Listed task pull")
|
||||
return jsonize({"tasks": tasks, "tasks_num": len(tasks)})
|
||||
task_list = list(tasks)
|
||||
return jsonize({"tasks": task_list, "tasks_num": len(tasks)})
|
||||
else:
|
||||
abort(401)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue