From 26c37456fe6ef447f922d05da707c4bbc7e27b71 Mon Sep 17 00:00:00 2001 From: Markus Binsteiner Date: Wed, 12 Jun 2024 13:26:05 +0200 Subject: [PATCH] fix: register alias in same kiara session --- src/kiara/registries/aliases/__init__.py | 2 +- src/kiara/registries/data/__init__.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kiara/registries/aliases/__init__.py b/src/kiara/registries/aliases/__init__.py index 4793ddf83..fd2229a1e 100644 --- a/src/kiara/registries/aliases/__init__.py +++ b/src/kiara/registries/aliases/__init__.py @@ -521,7 +521,7 @@ def register_aliases( # raise NotImplementedError() self.aliases[actual_alias] = alias_item # type: ignore - self._cached_aliases_by_id.setdefault(value_id, set()).add(alias_item) # type: ignore + self._cached_aliases_by_id.setdefault(value.value_id, set()).add(alias_item) # type: ignore # diff --git a/src/kiara/registries/data/__init__.py b/src/kiara/registries/data/__init__.py index 7075ea37e..bac77556c 100644 --- a/src/kiara/registries/data/__init__.py +++ b/src/kiara/registries/data/__init__.py @@ -631,6 +631,7 @@ def find_values(self, matcher: ValueMatcher) -> Dict[uuid.UUID, Value]: reasong=f"find_values not implemented for store: {store_id}", solution="return all values", ) + all_value_ids = store.value_ids if all_value_ids is None: continue