Fixed two mistakes in stats query count_nodes()
- 'p.x' → 'project.x' - is_private: {$ne: true} → is_private: False, because true is the default.
This commit is contained in:
@@ -24,10 +24,10 @@ def count_nodes(query=None) -> int:
|
||||
{
|
||||
'$project':
|
||||
{
|
||||
'p.is_private': 1,
|
||||
'project.is_private': 1,
|
||||
}
|
||||
},
|
||||
{'$match': {'p.is_private': {'$ne': True}}},
|
||||
{'$match': {'project.is_private': False}},
|
||||
{'$count': 'tot'}
|
||||
]
|
||||
c = current_app.db()['nodes']
|
||||
|
Reference in New Issue
Block a user