Skip to content
Merged

Next #146

Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/opengeodeweb_back/routes/models/blueprint_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ def uuid_to_flat_index():
tree = ET.parse(vtm_file_path)
root = tree.find("vtkMultiBlockDataSet")
uuid_to_flat_index = {}
current_index = 1
current_index = 0

for elem in root.iter():
if "uuid" in elem.attrib and elem.tag == "DataSet":
uuid_to_flat_index[elem.attrib["uuid"]] = current_index

current_index += 1

return flask.make_response(
Expand Down