From 150751b2204644de15c4668dc46ec004866e9107 Mon Sep 17 00:00:00 2001 From: zrgt Date: Fri, 29 Nov 2024 15:20:38 +0100 Subject: [PATCH 1/2] Add _kwargs to params otherwise some args like "response_t" will be passed, which leads to errors --- sdk/basyx/aas/adapter/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/basyx/aas/adapter/http.py b/sdk/basyx/aas/adapter/http.py index df3a8e9c..642c9cde 100644 --- a/sdk/basyx/aas/adapter/http.py +++ b/sdk/basyx/aas/adapter/http.py @@ -844,7 +844,7 @@ def delete_aas_submodel_refs_submodel(self, request: Request, url_args: Dict, re aas.commit() return response_t() - def aas_submodel_refs_redirect(self, request: Request, url_args: Dict, map_adapter: MapAdapter) -> Response: + def aas_submodel_refs_redirect(self, request: Request, url_args: Dict, map_adapter: MapAdapter, **_kwargs) -> Response: aas = self._get_shell(url_args) # the following makes sure the reference exists self._get_submodel_reference(aas, url_args["submodel_id"]) From bac0ef74b6ecfd2dd28f82a72885828f1c14cbb2 Mon Sep 17 00:00:00 2001 From: zrgt Date: Tue, 3 Dec 2024 14:05:53 +0100 Subject: [PATCH 2/2] Small style fix --- sdk/basyx/aas/adapter/http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/basyx/aas/adapter/http.py b/sdk/basyx/aas/adapter/http.py index 642c9cde..11ef78da 100644 --- a/sdk/basyx/aas/adapter/http.py +++ b/sdk/basyx/aas/adapter/http.py @@ -844,7 +844,8 @@ def delete_aas_submodel_refs_submodel(self, request: Request, url_args: Dict, re aas.commit() return response_t() - def aas_submodel_refs_redirect(self, request: Request, url_args: Dict, map_adapter: MapAdapter, **_kwargs) -> Response: + def aas_submodel_refs_redirect(self, request: Request, url_args: Dict, map_adapter: MapAdapter, + **_kwargs) -> Response: aas = self._get_shell(url_args) # the following makes sure the reference exists self._get_submodel_reference(aas, url_args["submodel_id"])