X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fcommon.git;a=blobdiff_plain;f=osm_common%2Fdbmongo.py;fp=osm_common%2Fdbmongo.py;h=e5e12c67b1868735cc4def86907aa67accba6680;hp=c9b384bdf800e2c0e143522fe421418b5f5f739f;hb=b5015160aca7f04f2b0fb35c87281c0ab480f429;hpb=01df3ee231471330760e03b013382464e773eee2 diff --git a/osm_common/dbmongo.py b/osm_common/dbmongo.py index c9b384b..e5e12c6 100644 --- a/osm_common/dbmongo.py +++ b/osm_common/dbmongo.py @@ -284,7 +284,7 @@ class DbMongo(DbBase): with self.lock: collection = self.db[table] db_filter = self._format_filter(q_filter) - count = collection.count(db_filter) + count = collection.count_documents(db_filter) return count except DbException: raise