fix item attributes using raw constraint value target, relaxed tif tcc drift
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user