api structure cleaning 1
This commit is contained in:
1 parent
a8eb4866eb
commit
87cd24234a
2 files changed
+7
-6
No files matched your search
+2
-1
@@ -152,12 +152,13 @@ def get_sensor_details(friendly_date = False):
|
||||
first_seen = ts_to_pst_string(sensor.first_seen)
|
||||
last_seen = ts_to_pst_string(sensor.last_seen)
|
||||
# print(f"Summary - {sensor.name}")
|
||||
sensor_dict = sensor.to_dict()
|
||||
new_sensor = {
|
||||
"name": sensor.name,
|
||||
"first_seen": first_seen,
|
||||
"last_seen": last_seen,
|
||||
"comment": sensor.comment,
|
||||
"data": sensor.to_dict()
|
||||
**sensor_dict
|
||||
|
||||
}
|
||||
sensor_list.append(new_sensor)
|
||||
|
||||
Reference in new issue
Block a user