(taskid)
return jsonize({"success": True, "options": DataStore.tasks[taskid].get_options()})
List options for a certain task ID
List options for a certain task ID
List options for a certain task ID
def option_list(taskid):
    """
    List options for a certain task ID
    """
    if taskid not in DataStore.tasks:
        logger.warning("[%s] Invalid task ID provided to option_list()" % taskid)
        return jsonize({"success": False, "message": "Invalid task ID"})

    logger.debug("[%s] Listed task options" % taskid)
    return jsonize({"success": True, "options": DataStore.tasks[taskid].get_options()})
def option_list ( taskid ) : if taskid not in DataStore . tasks : logger . warning ( "[%s] Invalid task ID provided to option_list()" % taskid ) return jsonize ( { "success" : False , "message" : "Invalid task ID" } ) logger . debug ( "[%s] Listed task options" % taskid ) return jsonize ( { "success" : True , "options" : DataStore . tasks [ taskid ] . get_options ( ) } )