From 5c9c3f5c536852e1aa072d1f77a8ff425116cb2c Mon Sep 17 00:00:00 2001 From: mouffok Date: Thu, 12 Oct 2023 17:15:04 +0200 Subject: [PATCH] add schema id missing parameter in _update_one of demo store --- kgforge/specializations/stores/demo_store.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kgforge/specializations/stores/demo_store.py b/kgforge/specializations/stores/demo_store.py index 337eff81..b453ce18 100644 --- a/kgforge/specializations/stores/demo_store.py +++ b/kgforge/specializations/stores/demo_store.py @@ -65,7 +65,7 @@ def retrieve(self, id: str, version: Optional[Union[int, str]], # CR[U]D. - def _update_one(self, resource: Resource) -> None: + def _update_one(self, resource: Resource, schema_id: str) -> None: data = as_json(resource, expanded=False, store_metadata=False, model_context=None, metadata_context=None, context_resolver=None) try: @@ -127,7 +127,6 @@ def _initialize_service(self, endpoint: Optional[str], bucket: Optional[str], token: Optional[str], searchendpoints:Optional[Dict]): return StoreLibrary() - def _to_resource(record: Dict) -> Resource: # TODO This operation might be abstracted in core when other stores will be implemented. resource = from_json(record["data"], None)