fix item attributes using raw constraint value target, relaxed tif tcc drift

This commit is contained in:
Josh Burman
2021-12-22 23:14:12 +00:00
parent 107abcb73a
commit 8bb5075f5b
2 changed files with 9 additions and 5 deletions

View File

@ -23,7 +23,11 @@ def items_csv_to_dict(items_csv_reader, solver_run):
item[solver_run.get_constraint(col).reference_attribute.id] = row[key]
elif solver_run.get_constraint(col):
constraint = solver_run.get_constraint(col)
item['attributes'].append(constraint.reference_attribute)
item['attributes'].append({
'id': col,
'value': row[key],
'type': constraint.reference_attribute.type
})
else:
if row[key]:
item[col] = row[key]