From 46860660e0fd9a4701ee355b59234727db8ce384 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 24 May 2023 12:26:52 +0200 Subject: [PATCH] fix modules calls --- ereuse_devicehub/resources/user/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/resources/user/models.py b/ereuse_devicehub/resources/user/models.py index 56383488..e469c2d1 100644 --- a/ereuse_devicehub/resources/user/models.py +++ b/ereuse_devicehub/resources/user/models.py @@ -106,7 +106,7 @@ class User(UserMixin, Thing): from ereuseapi.methods import register_user - from modules.trublo.utils import encrypt + from ereuse_devicehub.modules.trublo.utils import encrypt api_dlt = app.config.get('API_DLT') data = register_user(api_dlt) @@ -119,7 +119,7 @@ class User(UserMixin, Thing): if 'trublo' not in app.blueprints.keys(): return {} - from modules.trublo.utils import decrypt + from ereuse_devicehub.modules.trublo.utils import decrypt if not self.api_keys_dlt: return {} @@ -131,7 +131,7 @@ class User(UserMixin, Thing): if 'trublo' not in app.blueprints.keys(): return - from modules.trublo.utils import encrypt + from ereuse_devicehub.modules.trublo.utils import encrypt data = json.dumps(data) self.api_keys_dlt = encrypt(password, data)