Skip to content

Commit c3dd6e1

Browse files
committed
api's get_option function doesn't lookup the right object
1 parent a06a6de commit c3dd6e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def option_get(taskid):
389389

390390
option = request.json.get("option", "")
391391

392-
if option in tasks[taskid]:
392+
if option in tasks[taskid].options:
393393
return jsonize({option: tasks[taskid].get_option(option)})
394394
else:
395395
return jsonize({option: "not set"})

0 commit comments

Comments
 (0)