From 4e28e841add6ff766cd28f1cc136063c58c399ad Mon Sep 17 00:00:00 2001 From: Adrian Manteza Date: Wed, 23 Mar 2022 19:44:02 +0000 Subject: [PATCH] remove prefilter --- app/helpers/service_helper.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/helpers/service_helper.py b/app/helpers/service_helper.py index 7d252c8..fdf4fd3 100644 --- a/app/helpers/service_helper.py +++ b/app/helpers/service_helper.py @@ -43,13 +43,14 @@ def csv_to_item(items_csv_reader, solver_run): item[col] = row[key] # confirm item is only added if it meets the criteria of 100% constraints as a pre-filter - valid_item = True - item = Item.parse_obj(item) - for constraint in solver_run.constraints: - if item.attribute_exists(constraint.reference_attribute) == False and constraint.minimum == 100: - valid_item = False + items.append(item) + # valid_item = True + # item = Item.parse_obj(item) + # for constraint in solver_run.constraints: + # if item.attribute_exists(constraint.reference_attribute) == False and constraint.minimum == 100: + # valid_item = False - if valid_item: items.append(item) + # if valid_item: items.append(item) return items