mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03: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
|
@ -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 New Issue
Block a user