From 21ca8755d2ca3fe636d8e09f60f991145fddae2c Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 13 Dec 2024 09:50:01 +0100 Subject: [PATCH] fix smart legacy as a list --- workbench-script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workbench-script.py b/workbench-script.py index 2cc0be1..7d49b9b 100644 --- a/workbench-script.py +++ b/workbench-script.py @@ -65,7 +65,7 @@ def convert_to_legacy_snapshot(snapshot): snapshot["schema_api"] = "1.0.0" snapshot["settings_version"] = "No Settings Version (NaN)" snapshot["timestamp"] = snapshot["timestamp"].replace(" ", "T") - snapshot["data"]["smart"] = snapshot["data"]["smartctl"] + snapshot["data"]["smart"] = json.loads(snapshot["data"]["smartctl"]) snapshot["data"].pop("smartctl") snapshot["data"].pop("inxi") snapshot.pop("operator_id")