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:
parent
ff651e6a36
commit
39e8f12fe9
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue