check for none
This commit is contained in:
@ -81,7 +81,7 @@ def solution_items(variables, solver_run):
|
||||
form_items = []
|
||||
|
||||
for v in variables:
|
||||
if v.varValue > 0:
|
||||
if v.varValue is not None and v.varValue > 0:
|
||||
item_id = v.name.replace('Item_', '')
|
||||
item = solver_run.get_item(item_id)
|
||||
# add item to list and then remove from master item list
|
||||
|
Reference in New Issue
Block a user