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