@@ -72,7 +72,9 @@ def upload_file() -> flask.Response:
7272 methods = schemas_dict ["allowed_objects" ]["methods" ],
7373)
7474def allowed_objects () -> flask .Response :
75- json_data = utils_functions .validate_request (flask .request , schemas_dict ["allowed_objects" ])
75+ json_data = utils_functions .validate_request (
76+ flask .request , schemas_dict ["allowed_objects" ]
77+ )
7678 params = schemas .AllowedObjects .from_dict (json_data )
7779 file_absolute_path = geode_functions .upload_file_path (params .filename )
7880 file_extension = utils_functions .extension_from_filename (
@@ -96,7 +98,9 @@ def allowed_objects() -> flask.Response:
9698 methods = schemas_dict ["missing_files" ]["methods" ],
9799)
98100def missing_files () -> flask .Response :
99- json_data = utils_functions .validate_request (flask .request , schemas_dict ["missing_files" ])
101+ json_data = utils_functions .validate_request (
102+ flask .request , schemas_dict ["missing_files" ]
103+ )
100104 params = schemas .MissingFiles .from_dict (json_data )
101105 file_path = geode_functions .upload_file_path (params .filename )
102106 geode_object = geode_functions .geode_object_from_string (params .geode_object_type )
@@ -158,7 +162,9 @@ def crs_converter_geographic_coordinate_systems() -> flask.Response:
158162 methods = schemas_dict ["inspect_file" ]["methods" ],
159163)
160164def inspect_file () -> flask .Response :
161- json_data = utils_functions .validate_request (flask .request , schemas_dict ["inspect_file" ])
165+ json_data = utils_functions .validate_request (
166+ flask .request , schemas_dict ["inspect_file" ]
167+ )
162168 params = schemas .InspectFile .from_dict (json_data )
163169 file_path = geode_functions .upload_file_path (params .filename )
164170 geode_object = geode_functions .geode_object_from_string (
@@ -224,7 +230,9 @@ def geode_objects_and_output_extensions() -> flask.Response:
224230 methods = schemas_dict ["save_viewable_file" ]["methods" ],
225231)
226232def save_viewable_file () -> flask .Response :
227- json_data = utils_functions .validate_request (flask .request , schemas_dict ["save_viewable_file" ])
233+ json_data = utils_functions .validate_request (
234+ flask .request , schemas_dict ["save_viewable_file" ]
235+ )
228236 params = schemas .SaveViewableFile .from_dict (json_data )
229237 return flask .make_response (
230238 utils_functions .generate_native_viewable_and_light_viewable_from_file (
@@ -240,7 +248,9 @@ def save_viewable_file() -> flask.Response:
240248 methods = schemas_dict ["texture_coordinates" ]["methods" ],
241249)
242250def texture_coordinates () -> flask .Response :
243- json_data = utils_functions .validate_request (flask .request , schemas_dict ["texture_coordinates" ])
251+ json_data = utils_functions .validate_request (
252+ flask .request , schemas_dict ["texture_coordinates" ]
253+ )
244254 params = schemas .TextureCoordinates .from_dict (json_data )
245255 geode_object = geode_functions .load_geode_object (params .id )
246256 if not isinstance (geode_object , GeodeSurfaceMesh2D | GeodeSurfaceMesh3D ):
@@ -355,7 +365,9 @@ def kill() -> flask.Response:
355365 methods = schemas_dict ["export_project" ]["methods" ],
356366)
357367def export_project () -> flask .Response :
358- json_data = utils_functions .validate_request (flask .request , schemas_dict ["export_project" ])
368+ json_data = utils_functions .validate_request (
369+ flask .request , schemas_dict ["export_project" ]
370+ )
359371 params = schemas .ExportProject .from_dict (json_data )
360372
361373 project_folder : str = flask .current_app .config ["DATA_FOLDER_PATH" ]
0 commit comments