added subsite tag

This commit is contained in:
Quentin WEPHRE
2026-03-26 08:47:15 +01:00
parent b8c18689bf
commit 007f30a786

View File

@@ -30,6 +30,7 @@ for twin in query_result.items:
"device_id": twin.device_id, "device_id": twin.device_id,
"number": twin.tags.get("number") if twin.tags else None, "number": twin.tags.get("number") if twin.tags else None,
"site": twin.tags.get("site") if twin.tags else None, "site": twin.tags.get("site") if twin.tags else None,
"subsite": twin.tags.get("subsite") if twin.tags else None,
"connection_state": twin.connection_state, "connection_state": twin.connection_state,
"last_activity_time": twin.last_activity_time "last_activity_time": twin.last_activity_time
}) })
@@ -60,4 +61,4 @@ if "last_activity_time" in df_sorted.columns:
) )
df_sorted.to_excel("iot_devices.xlsx", index=False) df_sorted.to_excel("iot_devices_20260204.xlsx", index=False)