Skip to content

Commit

Permalink
fix(mongodbapi): count_documents needs a query
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanee committed Jan 8, 2025
1 parent e15352b commit 9257c6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/scheduled/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 9257c6f

Please sign in to comment.