From b0beff5b1d15946ec4e23a8796f5e9fc874991b3 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 28 Jul 2022 18:12:49 +0200 Subject: [PATCH] commit validation imei for mobiles --- ereuse_devicehub/resources/device/schemas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/device/schemas.py b/ereuse_devicehub/resources/device/schemas.py index 2cc8e65d..f1e22d51 100644 --- a/ereuse_devicehub/resources/device/schemas.py +++ b/ereuse_devicehub/resources/device/schemas.py @@ -291,7 +291,8 @@ class Mobile(Device): @pre_load def convert_check_imei(self, data): if data.get('imei', None): - data['imei'] = int(imei.validate(data['imei'])) + # data['imei'] = int(imei.validate(data['imei'])) + data['imei'] = int(data['imei']) return data @pre_load