From 40bf280c755f1ead2e0c9990d8bcc4cbe2afaf08 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 22 Nov 2021 10:31:20 +0100 Subject: [PATCH] Fixing name of document container in metrics --- ereuse_devicehub/resources/device/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/device/metrics.py b/ereuse_devicehub/resources/device/metrics.py index 55d6894c..df713c42 100644 --- a/ereuse_devicehub/resources/device/metrics.py +++ b/ereuse_devicehub/resources/device/metrics.py @@ -219,7 +219,7 @@ class TradeMetrics(MetricsMix): row['type'] = 'Trade-Document' row['action_type'] = 'Trade-Document' - if self.document.weight: + if self.document.total_weight: row['type'] = 'Trade-Container' row['action_type'] = 'Trade-Container'