enforce bundle first ordering if bundles ordering is true

This commit is contained in:
Josh Burman
2022-04-27 15:54:59 +00:00
parent 86d6d2fcec
commit a3ca233953
2 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,8 @@ def solution_items(variables: list, solver_run: SolverRun) -> Tuple[list]:
if bundle: form_bundles.append(bundle)
for bundle in form_bundles:
for item in bundle.ordered_items:
items = bundle.ordered_items if solver_run.bundle_first_ordering else bundle.items
for item in items:
final_items.append(item)
for item in form_items: