Fix geo stats ordering to sort by total_minutes instead of total_listeners

Countries with high engagement (listen time) should appear at the top,
not countries with just high unique listener counts.
This commit is contained in:
glenneth 2026-01-18 11:56:04 +03:00
parent ff651e6a36
commit 39e8f12fe9
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@
FROM listener_geo_stats FROM listener_geo_stats
WHERE date > NOW() - INTERVAL '~a days' WHERE date > NOW() - INTERVAL '~a days'
GROUP BY country_code GROUP BY country_code
ORDER BY total_listeners DESC ORDER BY total_minutes DESC
LIMIT 20" days))) LIMIT 20" days)))
(error (e) (error (e)
(log:error "Failed to get geo stats: ~a" e) (log:error "Failed to get geo stats: ~a" e)