List options for a certain task ID
(taskid)
| 441 | # Handle task's options |
| 442 | @get("/option/<taskid>/list") |
| 443 | def option_list(taskid): |
| 444 | """ |
| 445 | List options for a certain task ID |
| 446 | """ |
| 447 | if taskid not in DataStore.tasks: |
| 448 | logger.warning("[%s] Invalid task ID provided to option_list()" % taskid) |
| 449 | return jsonize({"success": False, "message": "Invalid task ID"}) |
| 450 | |
| 451 | logger.debug("(%s) Listed task options" % taskid) |
| 452 | return jsonize({"success": True, "options": DataStore.tasks[taskid].get_options()}) |
| 453 | |
| 454 | @post("/option/<taskid>/get") |
| 455 | def option_get(taskid): |
nothing calls this directly
no test coverage detected
searching dependent graphs…