Compare commits

..

2 Commits

Author SHA1 Message Date
Deeman
927f77ae5e fix: country_supply column name in location_profiles
All checks were successful
CI / test (push) Successful in 55s
CI / tag (push) Successful in 3s
2026-03-10 10:12:09 +01:00
Deeman
adf6f0c1ef fix(score): country_supply uses dim_cities.padel_venue_count (not city_padel_venue_count)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 10:09:30 +01:00

View File

@@ -218,10 +218,10 @@ country_market AS (
country_supply AS (
SELECT
country_code,
SUM(city_padel_venue_count) AS country_venues,
SUM(padel_venue_count) AS country_venues,
SUM(population) AS country_pop,
CASE WHEN SUM(population) > 0
THEN SUM(city_padel_venue_count) * 100000.0 / SUM(population)
THEN SUM(padel_venue_count) * 100000.0 / SUM(population)
ELSE 0
END AS venues_per_100k
FROM foundation.dim_cities