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
b68fce817d
|
|
@ -378,7 +378,7 @@
|
|||
FROM listener_geo_stats
|
||||
WHERE date > NOW() - INTERVAL '~a days'
|
||||
GROUP BY country_code
|
||||
ORDER BY total_listeners DESC
|
||||
ORDER BY total_minutes DESC
|
||||
LIMIT 20" days)))
|
||||
(error (e)
|
||||
(log:error "Failed to get geo stats: ~a" e)
|
||||
|
|
|
|||
Loading…
Reference in New Issue