Fix dumb appears query for albums

This commit is contained in:
mitteneer 2025-06-02 00:13:27 -04:00
parent 566edf1818
commit adcaff34ea

View file

@ -248,7 +248,7 @@ pub fn loadQuery(entity: EntityType, query_type: QueryTypeEnum) GeneratedQuery {
.appears =>
//.ResultType = AppearsResult,
switch (entity) {
.scrobble => unreachable,
.scrobble, .album => unreachable,
.song =>
\\SELECT albums.name AS album_name, albums.id AS album_id, COUNT(scrobbles) AS scrobbles
\\FROM artistalbums
@ -260,9 +260,6 @@ pub fn loadQuery(entity: EntityType, query_type: QueryTypeEnum) GeneratedQuery {
\\GROUP BY albums.id
\\ORDER BY scrobbles DESC;
,
.album =>
\\nope
,
.artist =>
\\SELECT albums.name AS album_name, albums.id AS album_id, COUNT(scrobbles) AS scrobbles
\\FROM artistalbums