From 238bb46427c2bcb8022693eed4a49ec5307680a4 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Thu, 2 Jan 2025 00:56:24 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Refactor=20lamindb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lamindb_setup/_init_instance.py | 2 +- lamindb_setup/core/_settings_user.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lamindb_setup/_init_instance.py b/lamindb_setup/_init_instance.py index 94bf8536..4061f7bb 100644 --- a/lamindb_setup/_init_instance.py +++ b/lamindb_setup/_init_instance.py @@ -43,8 +43,8 @@ def get_schema_module_name(schema_name, raise_import_error: bool = True) -> str def register_storage_in_instance(ssettings: StorageSettings): + from lamidb.base.users import current_user_id from lamindb.models import Storage - from lamindb.users import current_user_id from .core.hashing import hash_and_encode_as_b62 diff --git a/lamindb_setup/core/_settings_user.py b/lamindb_setup/core/_settings_user.py index 195eebcb..37e14661 100644 --- a/lamindb_setup/core/_settings_user.py +++ b/lamindb_setup/core/_settings_user.py @@ -48,7 +48,7 @@ def __repr__(self) -> str: @property def id(self): """Integer id valid in current intance.""" - from lamindb.users import current_user_id + from lamidb.base.users import current_user_id # there is no cache needed here because current_user_id() # has its own cache