mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 21:13:51 +03:00
Merge pull request #539 from bbuchacher/master
Fix - Custom objects cannot be serialized in JSON
This commit is contained in:
commit
16e803c3ca
|
@ -340,7 +340,8 @@ def task_list(taskid):
|
||||||
"""
|
"""
|
||||||
if is_admin(taskid):
|
if is_admin(taskid):
|
||||||
logger.debug("Listed task pull")
|
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:
|
else:
|
||||||
abort(401)
|
abort(401)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user