@get('/option/<taskid>/list')
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()})

@ get ( '/option/<taskid>/list' ) 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 ( ) } )
list options for a certain task id .