Skip to content

Commit 3a8cdf5

Browse files
authored
Merge pull request #145 from Geode-solutions/fix_blueprint_models
fix(blueprint_models): Set current_index
2 parents 8283510 + 1cf15d6 commit 3a8cdf5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/opengeodeweb_back/routes/models/blueprint_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ def uuid_to_flat_index():
2727
tree = ET.parse(vtm_file_path)
2828
root = tree.find("vtkMultiBlockDataSet")
2929
uuid_to_flat_index = {}
30-
current_index = 1
30+
current_index = 0
3131

3232
for elem in root.iter():
3333
if "uuid" in elem.attrib and elem.tag == "DataSet":
3434
uuid_to_flat_index[elem.attrib["uuid"]] = current_index
35+
3536
current_index += 1
3637

3738
return flask.make_response(

0 commit comments

Comments
 (0)