fixed tuple index error in combinedequipment api
parent
65feff7c88
commit
ae2bd5ed7e
|
@ -29,7 +29,7 @@ class CombinedEquipmentCollection:
|
||||||
cost_center_dict = dict()
|
cost_center_dict = dict()
|
||||||
if rows_cost_centers is not None and len(rows_cost_centers) > 0:
|
if rows_cost_centers is not None and len(rows_cost_centers) > 0:
|
||||||
for row in rows_cost_centers:
|
for row in rows_cost_centers:
|
||||||
cost_center_dict[row['id']] = {"id": row[0],
|
cost_center_dict[row[0]] = {"id": row[0],
|
||||||
"name": row[1],
|
"name": row[1],
|
||||||
"uuid": row[2]}
|
"uuid": row[2]}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue