Skip to content

Commit

Permalink
count only documents with key models
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Oct 19, 2023
1 parent 7b525e8 commit ccd1a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedn/fedn/network/statestore/mongostatestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({})
count = self.model.count_documents({"key": "models"})

return {
"result": result,
Expand Down

0 comments on commit ccd1a09

Please sign in to comment.