@@ -837,10 +837,10 @@ def can_delete_videos():
837837 team_uuid = team_info .retrieve_team_uuid (flask .session , flask .request )
838838 data = validate_keys (flask .request .form .to_dict (flat = True ),
839839 ['video_uuids' ])
840- video_uuids_json = storage .validate_uuids_json (data .get ('video_uuids' ))
840+ video_uuids = storage .validate_uuids_json (data .get ('video_uuids' ))
841841 # storage.can_delete_videos will raise HttpErrorNotFound
842842 # if any of the team_uuid/video_uuid is not found.
843- can_delete_videos , messages = storage .can_delete_videos (team_uuid , video_uuids_json )
843+ can_delete_videos , messages = storage .can_delete_videos (team_uuid , video_uuids )
844844 response = {
845845 'can_delete_videos' : can_delete_videos ,
846846 'messages' : messages ,
@@ -1068,7 +1068,7 @@ def prepare_to_start_dataset_production():
10681068 'message' : 'The Description is not valid or is a duplicate.'
10691069 }
10701070 return flask .jsonify (__sanitize (response ))
1071- video_uuids_json = storage .validate_uuids_json (data .get ('video_uuids' ))
1071+ video_uuids = storage .validate_uuids_json (data .get ('video_uuids' ))
10721072 try :
10731073 # The following min/max number (0 and 90) should match the min/max values in root.html.
10741074 eval_percent = validate_float (data .get ('eval_percent' ), min = 0 , max = 90 )
@@ -1093,9 +1093,9 @@ def prepare_to_start_dataset_production():
10931093 # dataset_producer.prepare_to_start_dataset_production will raise HttpErrorNotFound
10941094 # if any of the team_uuid/video_uuids is not found or if none of the videos have labeled frames.
10951095 dataset_uuid = dataset_producer .prepare_to_start_dataset_production (
1096- team_uuid , description , video_uuids_json , eval_percent , create_time_ms )
1096+ team_uuid , description , video_uuids , eval_percent , create_time_ms )
10971097 action_parameters = dataset_producer .make_action_parameters (
1098- team_uuid , dataset_uuid , video_uuids_json , eval_percent , create_time_ms )
1098+ team_uuid , dataset_uuid , video_uuids , eval_percent , create_time_ms )
10991099 action .trigger_action_via_blob (action_parameters )
11001100 response = {
11011101 'dataset_uuid' : dataset_uuid ,
@@ -1147,10 +1147,10 @@ def can_delete_datasets():
11471147 team_uuid = team_info .retrieve_team_uuid (flask .session , flask .request )
11481148 data = validate_keys (flask .request .form .to_dict (flat = True ),
11491149 ['dataset_uuids' ])
1150- dataset_uuids_json = storage .validate_uuids_json (data .get ('dataset_uuids' ))
1150+ dataset_uuids = storage .validate_uuids_json (data .get ('dataset_uuids' ))
11511151 # storage.can_delete_datasets will raise HttpErrorNotFound
11521152 # if any of the team_uuid/dataset_uuid is not found.
1153- can_delete_datasets , messages = storage .can_delete_datasets (team_uuid , dataset_uuids_json )
1153+ can_delete_datasets , messages = storage .can_delete_datasets (team_uuid , dataset_uuids )
11541154 response = {
11551155 'can_delete_datasets' : can_delete_datasets ,
11561156 'messages' : messages ,
@@ -1245,7 +1245,7 @@ def start_training_model():
12451245 # description = validate_description(data.get('description'),
12461246 # other_descriptions=[m['description'] for m in storage.retrieve_model_list(team_uuid)])
12471247 description = validate_description (data .get ('description' ))
1248- dataset_uuids_json = storage .validate_uuids_json (data .get ('dataset_uuids' ))
1248+ dataset_uuids = storage .validate_uuids_json (data .get ('dataset_uuids' ))
12491249 starting_model = model_trainer .validate_starting_model (data .get ('starting_model' ))
12501250 max_running_minutes = validate_positive_float (data .get ('max_running_minutes' ))
12511251 num_training_steps = validate_int (data .get ('num_training_steps' ),
@@ -1259,7 +1259,7 @@ def start_training_model():
12591259 # if the sorted_label_list values for all the datasets are not the same.
12601260 # model_trainer.start_training_model will raise HttpErrorUnprocessableEntity
12611261 # if the max_running_minutes exceeds the team's remaining_training_minutes.
1262- model_entity = model_trainer .start_training_model (team_uuid , description , dataset_uuids_json ,
1262+ model_entity = model_trainer .start_training_model (team_uuid , description , dataset_uuids ,
12631263 starting_model , max_running_minutes , num_training_steps , create_time_ms , config .config [KEY_USE_TPU ])
12641264 # Retrieve the team entity so the client gets the updated remaining_training_minutes.
12651265 team_entity = storage .retrieve_team_entity (team_uuid )
@@ -1427,10 +1427,10 @@ def can_delete_models():
14271427 team_uuid = team_info .retrieve_team_uuid (flask .session , flask .request )
14281428 data = validate_keys (flask .request .form .to_dict (flat = True ),
14291429 ['model_uuids' ])
1430- model_uuids_json = storage .validate_uuids_json (data .get ('model_uuids' ))
1430+ model_uuids = storage .validate_uuids_json (data .get ('model_uuids' ))
14311431 # storage.can_delete_models will raise HttpErrorNotFound
14321432 # if any of the team_uuid/model_uuid is not found.
1433- can_delete_models , messages = storage .can_delete_models (team_uuid , model_uuids_json )
1433+ can_delete_models , messages = storage .can_delete_models (team_uuid , model_uuids )
14341434 response = {
14351435 'can_delete_models' : can_delete_models ,
14361436 'messages' : messages ,
0 commit comments