Skip to content

Commit

Permalink
Add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Dec 29, 2024
1 parent ec99bd4 commit 56a5c32
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions get_org_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,20 @@ def get_number_percentage(organisation, key):
format="%.0f",
)
logger.info(f"Quarterly % API OKR = {quarterly_api_okr}")

logger.info(f"Total fresh datasets (using last modified) = {total_lm_fresh}")
logger.info(
f"Total non-fresh datasets (using last modified) = {total_lm_not_fresh}"
)
quarterly_lm_fresh_okr = get_fraction_str(
total_lm_fresh * 100,
(total_lm_fresh + total_lm_not_fresh),
format="%.0f",
)
logger.info(f"Quarterly % last modified fresh OKR = {quarterly_lm_fresh_okr}")

logger.info(f"Total up to date datasets (using end date) = {total_ed_uptodate}")
logger.info(f"Total out of date datasets (using end date) = {total_ed_outofdate}")
quarterly_ed_uptodate_okr = get_fraction_str(
total_ed_uptodate * 100,
(total_ed_uptodate + total_ed_outofdate),
Expand Down

0 comments on commit 56a5c32

Please sign in to comment.