| commit | b5015160aca7f04f2b0fb35c87281c0ab480f429 | [log] [tgz] |
|---|---|---|
| author | Pedro Escaleira <escaleira@av.it.pt> | Wed May 17 00:13:05 2023 +0100 |
| committer | Pedro Escaleira <escaleira@av.it.pt> | Wed May 17 00:24:22 2023 +0100 |
| tree | 95d0c71098cd7eef062c730255e961784e7f09c2 | |
| parent | 01df3ee231471330760e03b013382464e773eee2 [diff] [blame] |
Bug 2246 fixed Change-Id: Ic35d131d4e44686de207b0a6acc3360e04306cb2 Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
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 @@ 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