From 0ec6d6c51bbfb84b172a738a3e087cd817d51172 Mon Sep 17 00:00:00 2001 From: niklastheman Date: Mon, 23 Dec 2024 13:46:29 +0100 Subject: [PATCH] removed use_typings, changes to complie with feature/SK-1109 --- fedn/network/api/v1/graphql/schema.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fedn/network/api/v1/graphql/schema.py b/fedn/network/api/v1/graphql/schema.py index 2b0d42e4..0436c73e 100644 --- a/fedn/network/api/v1/graphql/schema.py +++ b/fedn/network/api/v1/graphql/schema.py @@ -50,7 +50,7 @@ class ModelType(graphene.ObjectType): def resolve_validations(self, info): kwargs = {"modelId": self["model"]} - response = validation_store.list(0, 0, None, sort_order=pymongo.DESCENDING, use_typing=False, **kwargs) + response = validation_store.list(0, 0, None, sort_order=pymongo.DESCENDING, **kwargs) result = response["result"] return result @@ -84,21 +84,21 @@ def resolve_session_config(self, info): def resolve_models(self, info): kwargs = {"session_id": self["session_id"]} - response = model_store.list(0, 0, None, sort_order=pymongo.DESCENDING, use_typing=False, **kwargs) + response = model_store.list(0, 0, None, sort_order=pymongo.DESCENDING, **kwargs) result = response["result"] return result def resolve_validations(self, info): kwargs = {"sessionId": self["session_id"]} - response = validation_store.list(0, 0, None, sort_order=pymongo.DESCENDING, use_typing=False, **kwargs) + response = validation_store.list(0, 0, None, sort_order=pymongo.DESCENDING, **kwargs) result = response["result"] return result def resolve_statuses(self, info): kwargs = {"sessionId": self["session_id"]} - response = status_store.list(0, 0, None, sort_order=pymongo.DESCENDING, use_typing=False, **kwargs) + response = status_store.list(0, 0, None, sort_order=pymongo.DESCENDING, **kwargs) result = response["result"] return result @@ -153,7 +153,7 @@ def resolve_sessions(root, info, name: str = None): response = None if name: kwargs = {"name": name} - response = session_store.list(0, 0, None, sort_order=pymongo.DESCENDING, use_typing=False, **kwargs) + response = session_store.list(0, 0, None, sort_order=pymongo.DESCENDING, **kwargs) else: response = session_store.list(0, 0, None) @@ -168,7 +168,7 @@ def resolve_models(root, info, session_id: str = None): response = None if session_id: kwargs = {"session_id": session_id} - response = model_store.list(0, 0, None, sort_order=pymongo.DESCENDING, use_typing=False, **kwargs) + response = model_store.list(0, 0, None, sort_order=pymongo.DESCENDING, **kwargs) else: response = model_store.list(0, 0, None) @@ -183,7 +183,7 @@ def resolve_validations(root, info, session_id: str = None): response = None if session_id: kwargs = {"session_id": session_id} - response = validation_store.list(0, 0, None, sort_order=pymongo.DESCENDING, use_typing=False, **kwargs) + response = validation_store.list(0, 0, None, sort_order=pymongo.DESCENDING, **kwargs) else: response = validation_store.list(0, 0, None) @@ -198,7 +198,7 @@ def resolve_statuses(root, info, session_id: str = None): response = None if session_id: kwargs = {"sessionId": session_id} - response = status_store.list(0, 0, None, sort_order=pymongo.DESCENDING, use_typing=False, **kwargs) + response = status_store.list(0, 0, None, sort_order=pymongo.DESCENDING, **kwargs) else: response = status_store.list(0, 0, None)