From 9257c6f09b217cb32b12948c4f4a3ab76f10fb92 Mon Sep 17 00:00:00 2001 From: Shanee Date: Wed, 8 Jan 2025 00:25:37 -0500 Subject: [PATCH] fix(mongodbapi): count_documents needs a query --- scripts/scheduled/metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/scheduled/metrics.py b/scripts/scheduled/metrics.py index 46f74a3bac..1e61330fed 100644 --- a/scripts/scheduled/metrics.py +++ b/scripts/scheduled/metrics.py @@ -21,10 +21,10 @@ contributors = len(contributors) # Number of Links -links = db.links.count_documents() +links = db.links.count_documents({}) # Number of Source sheets -sheets = db.sheets.count_documents() +sheets = db.sheets.count_documents({}) metrics = { "timestamp": datetime.datetime.now().replace(hour=0, minute=0, second=0, microsecond=0),