PLAT-3114: Fix publisher/measure counts script DB config

This MR fixes run-publisher-measure-counts-script, which raised TypeError: _env() missing 1 required positional argument: 'default' in prod before connecting to the database. _env() in scripts/get_publishers_and_metrics_books.py now takes a single POSTGRES_* name and a default, matching the calls in load_db_config() and kpis_update_script.py, and test_get_publishers_and_metrics_books.py asserts those names and the defaults instead of the removed METRICS_API_DB_* precedence.

  • Needs to deploy before the next scheduled run (2 Dec, 21:45).

🤖 Generated with Claude Code

Merge request reports

Loading
Loading