added qrcode string to tenant, equipment, and combinedequipment in api
parent
ec74c31b6f
commit
63397a1eee
|
@ -741,6 +741,7 @@ Result
|
||||||
| is_output_counted | boolean | Indicates if the Equipment's energy output is counted for aggregating| |
|
| is_output_counted | boolean | Indicates if the Equipment's energy output is counted for aggregating| |
|
||||||
| cost_center | Object | Cost Center Object |
|
| cost_center | Object | Cost Center Object |
|
||||||
| description | string | Equipment description |
|
| description | string | Equipment description |
|
||||||
|
| qrcode | string | QRCode in String |
|
||||||
|
|
||||||
* GET All Equipments
|
* GET All Equipments
|
||||||
```bash
|
```bash
|
||||||
|
@ -853,6 +854,7 @@ Result
|
||||||
| is_output_counted | boolean | Indicates if the combined equipment's energy output is counted for aggregating| |
|
| is_output_counted | boolean | Indicates if the combined equipment's energy output is counted for aggregating| |
|
||||||
| cost_center | Object | Cost Center Object |
|
| cost_center | Object | Cost Center Object |
|
||||||
| description | string | Combined Equipment description |
|
| description | string | Combined Equipment description |
|
||||||
|
| qrcode | string | QRCode in String |
|
||||||
|
|
||||||
* GET All Equipments
|
* GET All Equipments
|
||||||
```bash
|
```bash
|
||||||
|
@ -1874,6 +1876,7 @@ Result
|
||||||
| contact | Object | Contact Object |
|
| contact | Object | Contact Object |
|
||||||
| cost_center | Object | Cost Center Object |
|
| cost_center | Object | Cost Center Object |
|
||||||
| description | string | Tenant description |
|
| description | string | Tenant description |
|
||||||
|
| qrcode | string | QRCode in String |
|
||||||
|
|
||||||
* GET All Tenants
|
* GET All Tenants
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -51,7 +51,8 @@ class CombinedEquipmentCollection:
|
||||||
"is_input_counted": bool(row['is_input_counted']),
|
"is_input_counted": bool(row['is_input_counted']),
|
||||||
"is_output_counted": bool(row['is_output_counted']),
|
"is_output_counted": bool(row['is_output_counted']),
|
||||||
"cost_center": cost_center,
|
"cost_center": cost_center,
|
||||||
"description": row['description']}
|
"description": row['description'],
|
||||||
|
"qrcode": 'combinedequipment:' + row['uuid']}
|
||||||
result.append(meta_result)
|
result.append(meta_result)
|
||||||
|
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
@ -198,7 +199,8 @@ class CombinedEquipmentItem:
|
||||||
"is_input_counted": bool(row['is_input_counted']),
|
"is_input_counted": bool(row['is_input_counted']),
|
||||||
"is_output_counted": bool(row['is_output_counted']),
|
"is_output_counted": bool(row['is_output_counted']),
|
||||||
"cost_center": cost_center,
|
"cost_center": cost_center,
|
||||||
"description": row['description']}
|
"description": row['description'],
|
||||||
|
"qrcode": 'combinedequipment:' + row['uuid']}
|
||||||
|
|
||||||
resp.text = json.dumps(meta_result)
|
resp.text = json.dumps(meta_result)
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,8 @@ class EquipmentCollection:
|
||||||
"is_input_counted": bool(row['is_input_counted']),
|
"is_input_counted": bool(row['is_input_counted']),
|
||||||
"is_output_counted": bool(row['is_output_counted']),
|
"is_output_counted": bool(row['is_output_counted']),
|
||||||
"cost_center": cost_center,
|
"cost_center": cost_center,
|
||||||
"description": row['description']}
|
"description": row['description'],
|
||||||
|
"qrcode": 'equipment:' + row['uuid']}
|
||||||
result.append(meta_result)
|
result.append(meta_result)
|
||||||
|
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
@ -198,7 +199,8 @@ class EquipmentItem:
|
||||||
"is_input_counted": bool(row['is_input_counted']),
|
"is_input_counted": bool(row['is_input_counted']),
|
||||||
"is_output_counted": bool(row['is_output_counted']),
|
"is_output_counted": bool(row['is_output_counted']),
|
||||||
"cost_center": cost_center,
|
"cost_center": cost_center,
|
||||||
"description": row['description']}
|
"description": row['description'],
|
||||||
|
"qrcode": 'equipment:' + row['uuid']}
|
||||||
|
|
||||||
resp.text = json.dumps(meta_result)
|
resp.text = json.dumps(meta_result)
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,8 @@ class TenantCollection:
|
||||||
"is_in_lease": bool(row['is_in_lease']),
|
"is_in_lease": bool(row['is_in_lease']),
|
||||||
"contact": contact,
|
"contact": contact,
|
||||||
"cost_center": cost_center,
|
"cost_center": cost_center,
|
||||||
"description": row['description']}
|
"description": row['description'],
|
||||||
|
"qrcode": 'tenant:' + row['uuid']}
|
||||||
result.append(meta_result)
|
result.append(meta_result)
|
||||||
|
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
@ -396,7 +397,8 @@ class TenantItem:
|
||||||
"is_in_lease": bool(row['is_in_lease']),
|
"is_in_lease": bool(row['is_in_lease']),
|
||||||
"contact": contact,
|
"contact": contact,
|
||||||
"cost_center": cost_center,
|
"cost_center": cost_center,
|
||||||
"description": row['description']}
|
"description": row['description'],
|
||||||
|
"qrcode": 'tenant:' + row['uuid']}
|
||||||
|
|
||||||
resp.text = json.dumps(meta_result)
|
resp.text = json.dumps(meta_result)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue