Skip to content

Commit d7c4b03

Browse files
Apply prepare changes
1 parent a363b8b commit d7c4b03

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/opengeodeweb_back/geode_objects.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ def geode_objects_dict():
457457
"convert": og_gs.convert_surface_mesh_coordinate_reference_system2D,
458458
"create": og.create_surface_mesh_coordinate_system2D,
459459
},
460-
461460
"object_type": "mesh",
462461
"is_3D": False,
463462
"is_viewable": True,

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,9 @@ def save_viewable_file():
260260
DATA_FOLDER_PATH,
261261
generated_id + "." + native_extension,
262262
)
263-
object_type = geode_functions.get_object_type(flask.request.json["input_geode_object"])
264-
263+
object_type = geode_functions.get_object_type(
264+
flask.request.json["input_geode_object"]
265+
)
265266

266267
native_file_name = os.path.basename(absolute_native_file_path)
267268
viewable_file_name = os.path.basename(saved_viewable_file_path)
@@ -271,7 +272,7 @@ def save_viewable_file():
271272
"native_file_name": native_file_name,
272273
"viewable_file_name": viewable_file_name,
273274
"id": generated_id,
274-
"object_type": object_type
275+
"object_type": object_type,
275276
},
276277
200,
277278
)

tests/test_routes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ def get_full_data():
163163
assert type(object_type) is str
164164
assert object_type in ["model", "mesh"]
165165

166-
167166
# Test all params
168167
test_utils.test_route_wrong_params(client, route, get_full_data)
169168

0 commit comments

Comments
 (0)