A decentralized music tracking and discovery platform built on AT Protocol 🎵

Exclude Various Artists from artist queries

+4 -3
+4 -3
crates/analytics/src/handlers/artists.rs
··· 72 72 LEFT JOIN artists a ON ua.artist_id = a.id 73 73 LEFT JOIN users u ON ua.user_id = u.id 74 74 LEFT JOIN scrobbles s ON s.artist_id = a.id 75 - WHERE u.did = ? OR u.handle = ? 75 + WHERE (u.did = ? OR u.handle = ?) AND a.name != 'Various Artists' 76 76 GROUP BY a.* 77 77 ORDER BY play_count DESC 78 78 LIMIT ? OFFSET ? ··· 121 121 COUNT(DISTINCT s.user_id) AS unique_listeners 122 122 FROM artists a 123 123 LEFT JOIN scrobbles s ON s.artist_id = a.id 124 + WHERE a.name != 'Various Artists' 124 125 GROUP BY a.* 125 126 ORDER BY play_count DESC 126 127 LIMIT ? OFFSET ? ··· 189 190 LEFT JOIN 190 191 users u ON s.user_id = u.id 191 192 WHERE 192 - s.artist_id IS NOT NULL AND (u.did = ? OR u.handle = ?) 193 + s.artist_id IS NOT NULL AND (u.did = ? OR u.handle = ?) AND ar.name != 'Various Artists' 193 194 GROUP BY 194 195 s.artist_id, ar.name, ar.uri, ar.picture, ar.sha256, ar.genres 195 196 ORDER BY ··· 214 215 LEFT JOIN 215 216 artists ar ON s.artist_id = ar.id 216 217 WHERE 217 - s.artist_id IS NOT NULL 218 + s.artist_id IS NOT NULL AND ar.name != 'Various Artists' 218 219 GROUP BY 219 220 s.artist_id, ar.name, ar.uri, ar.picture, ar.sha256, ar.genres 220 221 ORDER BY