Skip to content

Commit c542eff

Browse files
refactor and clean code 2
1 parent 1f63bee commit c542eff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ def inspect_file():
168168
secure_filename = werkzeug.utils.secure_filename(flask.request.json["filename"])
169169
file_path = os.path.abspath(os.path.join(UPLOAD_FOLDER, secure_filename))
170170
data = geode_functions.load(flask.request.json["input_geode_object"], file_path)
171-
inspection_tree = geode_functions.inspect(
171+
class_inspector = geode_functions.inspect(
172172
flask.request.json["input_geode_object"], data
173173
)
174-
inspection_result = [geode_functions.get_inspector_children(inspection_tree)]
174+
inspection_result = geode_functions.get_inspector_children(class_inspector)
175175
return flask.make_response({"inspection_result": inspection_result}, 200)
176176

177177

0 commit comments

Comments
 (0)