From e10594b72f8c33cf2b147799ddcd4762d85a6da6 Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 19 Oct 2023 11:29:44 +0200 Subject: [PATCH] list models, correct count --- fedn/fedn/network/statestore/mongostatestore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedn/fedn/network/statestore/mongostatestore.py b/fedn/fedn/network/statestore/mongostatestore.py index 02c1f760a..d2e454a12 100644 --- a/fedn/fedn/network/statestore/mongostatestore.py +++ b/fedn/fedn/network/statestore/mongostatestore.py @@ -366,7 +366,7 @@ def list_models(self, session_id=None, limit=None, skip=None): else: result = self.model.find(find_option) - count = self.model.count_documents({"key": "models"}) + count = self.model.count_documents(find_option) return { "result": result,