fix modules calls

This commit is contained in:
Cayo Puigdefabregas 2023-05-24 12:26:52 +02:00
parent 838d9180ad
commit 46860660e0
1 changed files with 3 additions and 3 deletions

View File

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