From 35a5ab061b8d0cc8ec0993087ecf8599d6469244 Mon Sep 17 00:00:00 2001 From: Josh Burman Date: Wed, 27 Apr 2022 16:03:14 +0000 Subject: [PATCH] final items need to be returned --- app/helpers/service_helper.py | 2 +- app/services/loft_service.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/helpers/service_helper.py b/app/helpers/service_helper.py index 8acd664..7f74d1e 100644 --- a/app/helpers/service_helper.py +++ b/app/helpers/service_helper.py @@ -132,7 +132,7 @@ def solution_items(variables: list, solver_run: SolverRun) -> Tuple[list]: for item in form_items: final_items.append(item) - return form_items, solver_variables + return final_items, solver_variables def print_problem_variables(problem): # Uncomment this as needed in local dev diff --git a/app/services/loft_service.py b/app/services/loft_service.py index d854291..0174158 100644 --- a/app/services/loft_service.py +++ b/app/services/loft_service.py @@ -83,11 +83,11 @@ class LoftService(Base): lowBound=0, upBound=1, cat='Binary') - bundles = LpVariable.dicts( - "Bundle", [bundle.id for bundle in selected_bundles], - lowBound=0, - upBound=1, - cat='Binary') + bundles = LpVariable.dicts("Bundle", + [bundle.id for bundle in selected_bundles], + lowBound=0, + upBound=1, + cat='Binary') logging.info(f'Generating Solution for Form {form_number}')