Skip to content

Commit

Permalink
Removed filter for estimated_document_count
Browse files Browse the repository at this point in the history
  • Loading branch information
einarhuseby committed Jan 29, 2019
1 parent edcacfb commit 8eb6100
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eve/io/mongo/mongo.py
Expand Up @@ -272,9 +272,7 @@ def find(self, resource, req, sub_resource_lookup):
)
elif pagination_strategy == "estimated":
return (
self.pymongo(resource)
.db[datasource]
.estimated_document_count(filter=args["filter"]),
self.pymongo(resource).db[datasource].estimated_document_count(),
self.pymongo(resource).db[datasource].find(**args),
)
else:
Expand Down

0 comments on commit 8eb6100

Please sign in to comment.