From 8bbc883f9f15801a220b08e92108c003512f5163 Mon Sep 17 00:00:00 2001 From: Florian Spreckelsen <f.spreckelsen@indiscale.com> Date: Tue, 30 Apr 2024 11:48:27 +0200 Subject: [PATCH] FIX: Reset default inheritance to FIX --- src/linkahead/common/models.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/linkahead/common/models.py b/src/linkahead/common/models.py index b087496d..c9c5cb77 100644 --- a/src/linkahead/common/models.py +++ b/src/linkahead/common/models.py @@ -2382,7 +2382,8 @@ class _Properties(list): return self._importance.get(property) - def set_importance(self, property: Optional[Property], importance: IMPORTANCE): # @ReservedAssignment + # @ReservedAssignment + def set_importance(self, property: Optional[Property], importance: IMPORTANCE): if property is not None: self._importance[property] = importance @@ -2420,7 +2421,7 @@ class _Properties(list): if inheritance is not None: self._inheritance[property] = inheritance else: - self._inheritance[property] = "ALL" + self._inheritance[property] = "FIX" if property.id is not None: self._element_by_id[str(property.id)] = property @@ -4734,7 +4735,8 @@ class Query(): next_page = self._query_request(query_dict) etag = next_page.query.etag if etag is not None and etag != self.etag: - raise PagingConsistencyError("The database state changed while retrieving the pages") + raise PagingConsistencyError( + "The database state changed while retrieving the pages") yield next_page index += page_length @@ -4894,7 +4896,7 @@ def execute_query( class DropOffBox(list): def __init__(self, *args, **kwargs): warn(DeprecationWarning( - "The DropOffBox is deprecated and will be removed in future.")) + "The DropOffBox is deprecated and will be removed in future.")) super().__init__(*args, **kwargs) path = None -- GitLab