From 4bb71adf007eb6d30f2c233c258d8cdbd04d5ac6 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 21 Oct 2024 13:27:45 +0200 Subject: [PATCH] add hours of use --- evidence/parse_details.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/evidence/parse_details.py b/evidence/parse_details.py index 8465403..fd7f1c2 100644 --- a/evidence/parse_details.py +++ b/evidence/parse_details.py @@ -160,6 +160,7 @@ class ParseSnapshot: continue model = sm.get('model_name') manufacturer = None + hours = sm.get("power_on_time", {}).get("hours", 0) if model and len(model.split(" ")) > 1: mm = model.split(" ") model = mm[-1] @@ -175,6 +176,7 @@ class ParseSnapshot: "size": self.get_data_storage_size(sm), "variant": sm.get("firmware_version"), "interface": self.get_data_storage_interface(sm), + "hours": hours, } )