Bug 2246 fixed
[osm/common.git] / osm_common / dbmongo.py
index c9b384b..e5e12c6 100644 (file)
@@ -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