Fix dumb appears query for albums
This commit is contained in:
parent
566edf1818
commit
adcaff34ea
1 changed files with 1 additions and 4 deletions
|
|
@ -248,7 +248,7 @@ pub fn loadQuery(entity: EntityType, query_type: QueryTypeEnum) GeneratedQuery {
|
||||||
.appears =>
|
.appears =>
|
||||||
//.ResultType = AppearsResult,
|
//.ResultType = AppearsResult,
|
||||||
switch (entity) {
|
switch (entity) {
|
||||||
.scrobble => unreachable,
|
.scrobble, .album => unreachable,
|
||||||
.song =>
|
.song =>
|
||||||
\\SELECT albums.name AS album_name, albums.id AS album_id, COUNT(scrobbles) AS scrobbles
|
\\SELECT albums.name AS album_name, albums.id AS album_id, COUNT(scrobbles) AS scrobbles
|
||||||
\\FROM artistalbums
|
\\FROM artistalbums
|
||||||
|
|
@ -260,9 +260,6 @@ pub fn loadQuery(entity: EntityType, query_type: QueryTypeEnum) GeneratedQuery {
|
||||||
\\GROUP BY albums.id
|
\\GROUP BY albums.id
|
||||||
\\ORDER BY scrobbles DESC;
|
\\ORDER BY scrobbles DESC;
|
||||||
,
|
,
|
||||||
.album =>
|
|
||||||
\\nope
|
|
||||||
,
|
|
||||||
.artist =>
|
.artist =>
|
||||||
\\SELECT albums.name AS album_name, albums.id AS album_id, COUNT(scrobbles) AS scrobbles
|
\\SELECT albums.name AS album_name, albums.id AS album_id, COUNT(scrobbles) AS scrobbles
|
||||||
\\FROM artistalbums
|
\\FROM artistalbums
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue