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}')