MongoDB: more changing count() → count_documents()

This commit is contained in:
2019-05-29 13:42:42 +02:00
parent 6f8fd4cd72
commit 2aa79d3f09
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ def has_texture_node(proj, return_hdri=True):
if return_hdri:
node_types.append('group_hdri')
count = nodes_collection.count(
count = nodes_collection.count_documents(
{'node_type': {'$in': node_types},
'project': proj['_id'],
'parent': None})