Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriele A. Ron <[email protected]>
  • Loading branch information
Macr0Nerd committed Dec 29, 2023
1 parent 93d7b0f commit a6aeb06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/project_dilemma/object_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def create_nodes(config: ProjectDilemmaConfig, algorithms_map: Dict[str, type[Al

for node in config['nodes']:
if not node.get('quantity'):
node['quantity'] = 1
nodes.append(Node(node["node_id"], algorithms_map[node['algorithm']['object']]))
continue

for i in range(node['quantity']):
nodes.append(Node(f'{node["node_id"]}{i}', algorithms_map[node['algorithm']['object']]))
Expand Down

0 comments on commit a6aeb06

Please sign in to comment.