Skip to content

Commit

Permalink
list models, correct count
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Oct 19, 2023
1 parent ccd1a09 commit e10594b
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({"key": "models"})
count = self.model.count_documents(find_option)

return {
"result": result,
Expand Down

0 comments on commit e10594b

Please sign in to comment.