Merge pull request #578 from mattoufoutu/master

api's get_option function doesn't lookup the right object
This commit is contained in:
Miroslav Stampar 2013-12-09 04:52:34 -08:00
commit 93628cdd62

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"})