fixed tuple index error in combinedequipment api

pull/140/head
13621160019@163.com 2022-04-10 20:42:14 +08:00
parent 65feff7c88
commit ae2bd5ed7e
1 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ class CombinedEquipmentCollection:
cost_center_dict = dict()
if rows_cost_centers is not None and len(rows_cost_centers) > 0:
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],
"uuid": row[2]}