Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Furr committed Sep 26, 2018
1 parent 4070120 commit 6118e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongolog/management/commands/mongolog_purge.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def purge(self, **options):
console.warn("You are about to delete all mongolog documents!!!")

if self.confirm(**options):
total = self.collection.find().count()
total = self.collection.find({}).count()
self.collection.delete_many({})
console.warn("Total docs to remove: %s", total)

Expand Down

0 comments on commit 6118e51

Please sign in to comment.