Skip to content

Commit 9257c6f

Browse files
author
Shanee
committed
fix(mongodbapi): count_documents needs a query
1 parent e15352b commit 9257c6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/scheduled/metrics.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
contributors = len(contributors)
2222

2323
# Number of Links
24-
links = db.links.count_documents()
24+
links = db.links.count_documents({})
2525

2626
# Number of Source sheets
27-
sheets = db.sheets.count_documents()
27+
sheets = db.sheets.count_documents({})
2828

2929
metrics = {
3030
"timestamp": datetime.datetime.now().replace(hour=0, minute=0, second=0, microsecond=0),

0 commit comments

Comments
 (0)