api's get_option function doesn't lookup the right object

This commit is contained in:
Mathieu Deous 2013-12-08 17:46:02 +01:00
parent a06a6de193
commit c3dd6e1e32

View File

@ -389,7 +389,7 @@ def option_get(taskid):
option = request.json.get("option", "")
if option in tasks[taskid]:
if option in tasks[taskid].options:
return jsonize({option: tasks[taskid].get_option(option)})
else:
return jsonize({option: "not set"})