From 2396a49cb02d263ac26aff0fede84b1bc82d22f0 Mon Sep 17 00:00:00 2001 From: Simone Orsi Date: Tue, 8 Mar 2022 14:23:14 +0100 Subject: [PATCH] sf_shopinvader_base: use get_shop_data instead --- shopfloor_shopinvader_base/services/product.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shopfloor_shopinvader_base/services/product.py b/shopfloor_shopinvader_base/services/product.py index 3e30952745..696e7f3d6c 100644 --- a/shopfloor_shopinvader_base/services/product.py +++ b/shopfloor_shopinvader_base/services/product.py @@ -42,7 +42,8 @@ def _get(self, _id): def _to_json(self, records): # TODO: not super-efficient w/ many records - return [rec._get_shop_data() for rec in records] + # only if used w/ `shopinvader_data_stored` + return [rec.get_shop_data() for rec in records] # Validator def _validator_get(self):