@@ -99,7 +99,7 @@ def allowed_objects():
9999
100100 UPLOAD_FOLDER = flask .current_app .config ["UPLOAD_FOLDER" ]
101101 utils_functions .validate_request (flask .request , allowed_objects_json )
102- file_absolute_path = geode_functions .build_upload_file_path (
102+ file_absolute_path = geode_functions .upload_file_path (
103103 UPLOAD_FOLDER , flask .request .json ["filename" ])
104104 allowed_objects = geode_functions .list_geode_objects (
105105 file_absolute_path , flask .request .json ["supported_feature" ]
@@ -124,7 +124,7 @@ def missing_files():
124124
125125 missing_files = geode_functions .missing_files (
126126 flask .request .json ["input_geode_object" ],
127- geode_functions .build_upload_file_path (
127+ geode_functions .upload_file_path (
128128 UPLOAD_FOLDER , flask .request .json ["filename" ]),
129129 )
130130 has_missing_files = missing_files .has_missing_files ()
@@ -217,7 +217,7 @@ def geode_objects_and_output_extensions():
217217 )
218218 data = geode_functions .load (
219219 flask .request .json ["input_geode_object" ],
220- geode_functions .build_upload_file_path (
220+ geode_functions .upload_file_path (
221221 UPLOAD_FOLDER , flask .request .json ["filename" ]),
222222 )
223223 geode_objects_and_output_extensions = (
@@ -289,11 +289,9 @@ def create_point():
289289 methods = texture_coordinates_json ["methods" ],
290290)
291291def texture_coordinates ():
292- DATA_FOLDER_PATH = flask .current_app .config ["DATA_FOLDER_PATH" ]
293292 utils_functions .validate_request (flask .request , texture_coordinates_json )
294- data = geode_functions .load_from_request (
293+ data = geode_functions .load_data (
295294 flask .request .json ["input_geode_object" ],
296- DATA_FOLDER_PATH ,
297295 flask .request .json ,
298296)
299297
@@ -314,11 +312,9 @@ def texture_coordinates():
314312 methods = vertex_attribute_names_json ["methods" ],
315313)
316314def vertex_attribute_names ():
317- DATA_FOLDER_PATH = flask .current_app .config ["DATA_FOLDER_PATH" ]
318315 utils_functions .validate_request (flask .request , vertex_attribute_names_json )
319- data = geode_functions .load_from_request (
316+ data = geode_functions .load_data (
320317 flask .request .json ["input_geode_object" ],
321- DATA_FOLDER_PATH ,
322318 flask .request .json ,
323319 )
324320
@@ -344,11 +340,9 @@ def vertex_attribute_names():
344340 methods = polygon_attribute_names_json ["methods" ],
345341)
346342def polygon_attribute_names ():
347- DATA_FOLDER_PATH = flask .current_app .config ["DATA_FOLDER_PATH" ]
348343 utils_functions .validate_request (flask .request , polygon_attribute_names_json )
349- data = geode_functions .load_from_request (
344+ data = geode_functions .load_data (
350345 flask .request .json ["input_geode_object" ],
351- DATA_FOLDER_PATH ,
352346 flask .request .json ,
353347 )
354348
@@ -374,11 +368,9 @@ def polygon_attribute_names():
374368 methods = polyhedron_attribute_names_json ["methods" ],
375369)
376370def polyhedron_attribute_names ():
377- DATA_FOLDER_PATH = flask .current_app .config ["DATA_FOLDER_PATH" ]
378371 utils_functions .validate_request (flask .request , vertex_attribute_names_json )
379- data = geode_functions .load_from_request (
372+ data = geode_functions .load_data (
380373 flask .request .json ["input_geode_object" ],
381- DATA_FOLDER_PATH ,
382374 flask .request .json ,
383375 )
384376
0 commit comments