Commit fedb9ef1 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Minor change

parent 067f3c4e
...@@ -487,7 +487,7 @@ class Website: ...@@ -487,7 +487,7 @@ class Website:
if not parent: if not parent:
# insert parent if it does not exist # insert parent if it does not exist
insert_node(parent_id) insert_node(parent_id)
parent = self.rubrique_tree.get(parent_name) parent = self.rubrique_tree[parent_name]
self.rubrique_tree[node_name] = anytree.Node(node_name, parent=parent) self.rubrique_tree[node_name] = anytree.Node(node_name, parent=parent)
self.labels[0] = "root" # Root node label self.labels[0] = "root" # Root node label
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment