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,9 +29,9 @@ 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],
"name": row[1],
"uuid": row[2]}
cost_center_dict[row[0]] = {"id": row[0],
"name": row[1],
"uuid": row[2]}
query = (" SELECT id, name, uuid, "
" is_input_counted, is_output_counted, "