From cf81579819b6943280fefed907f0fd398856eb8c Mon Sep 17 00:00:00 2001 From: pedro Date: Mon, 11 Nov 2024 02:30:30 +0100 Subject: [PATCH] workbench-script: in legacy, lshw is a json object --- workbench-script.py | 1 + 1 file changed, 1 insertion(+) diff --git a/workbench-script.py b/workbench-script.py index 37058e0..010d593 100644 --- a/workbench-script.py +++ b/workbench-script.py @@ -26,6 +26,7 @@ def convert_to_legacy_snapshot(snapshot): snapshot["settings_version"] = "No Settings Version (NaN)" snapshot["timestamp"] = snapshot["timestamp"].replace(" ", "T") snapshot["data"]["smart"] = snapshot["data"]["disks"] + snapshot["data"]["lshw"] = json.loads(snapshot["data"]["lshw"]) snapshot["data"].pop("disks") snapshot.pop("erase")