Skip to content

Commit

Permalink
removed use_typings, changes to complie with feature/SK-1109
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Dec 23, 2024
1 parent b069844 commit 0ec6d6c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions fedn/network/api/v1/graphql/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand Down

0 comments on commit 0ec6d6c

Please sign in to comment.