Fixing name of document container in metrics

This commit is contained in:
Cayo Puigdefabregas 2021-11-22 10:31:20 +01:00
parent 9d4df05831
commit 40bf280c75

View file

@ -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'