From cf4e1df5272b56eb7c35d25808c036e0ee194d0b Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 21 Jun 2022 17:50:27 +0200 Subject: [PATCH] add field type of transfer instead of change the name --- ereuse_devicehub/resources/lot/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ereuse_devicehub/resources/lot/views.py b/ereuse_devicehub/resources/lot/views.py index e992dc90..0f0752ab 100644 --- a/ereuse_devicehub/resources/lot/views.py +++ b/ereuse_devicehub/resources/lot/views.py @@ -127,9 +127,7 @@ class LotView(View): continue for _lot in lots_dump: if _lot['id'] == str(lot.id): - name = _lot['name'] - type_transfer = lot.type_transfer() - _lot['name'] = f'{name} - ({type_transfer})' + _lot['transfer'] = lot.type_transfer() break return lots_dump