Skip to content

Commit

Permalink
fix(create_xlsform): invert rural and urban trees
Browse files Browse the repository at this point in the history
  • Loading branch information
yannforget committed Nov 13, 2024
1 parent 5e052b5 commit b1cd2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create-xlsform/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def generate_form(
validate_config(config_data=config, cart_urban=cart_urban, cart_rural=cart_rural)

# merge both binary trees into a single one, and set node attributes from config
root = merge_trees(root_rural, root_urban)
root = merge_trees(root_urban=root_urban, root_rural=root_rural)
for node in root.preorder():
node.from_config(
questions_config=config["questions"], choices_config=config["choices"]
Expand Down

0 comments on commit b1cd2c2

Please sign in to comment.