Commit ff53b052 authored by Jérome Perrin's avatar Jérome Perrin

budget: fix an unused variable warning

This also fixups b9b14bc7 for the case
where the consumption range is different from consumed budget or engaged
budget (for exemple when we have only engaged movements on a given node)
parent 328db825
Pipeline #2742 skipped
...@@ -134,7 +134,7 @@ class NodeBudgetVariation(BudgetVariation): ...@@ -134,7 +134,7 @@ class NodeBudgetVariation(BudgetVariation):
consumption_dict = budget_line.getConsumedBudgetDict() consumption_dict = budget_line.getConsumedBudgetDict()
else: else:
consumption_dict = budget_line.getEngagedBudgetDict() consumption_dict = budget_line.getEngagedBudgetDict()
for consumed_budget_key in budget_line.getConsumedBudgetDict().keys(): for consumed_budget_key in consumption_dict.keys():
for item in consumed_budget_key: for item in consumed_budget_key:
if item.startswith(prefix): if item.startswith(prefix):
used_node_item_set.add(item) used_node_item_set.add(item)
......
Markdown is supported
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