Begin album reviews
Album reviews would ideally allow you to rate tracks at the same time, so we'll have to work on that next. Also, disambiguation pages are becoming more and more necessary (Little Talks in inaccessible atm) Preferably, we start working on the `INDEX` for `/ratings` as well, and maybe use a unified language for these things (is it review, rating, rating_text, score,...?)
This commit is contained in:
parent
9f27fad235
commit
0b7efc3420
6 changed files with 98 additions and 22 deletions
|
|
@ -446,6 +446,12 @@ pub fn loadQuery(entity: EntityType, query_type: QueryTypeEnum) GeneratedQuery {
|
|||
\\WHERE song = $1
|
||||
\\ORDER BY date DESC;
|
||||
,
|
||||
.album =>
|
||||
\\SELECT rating AS score, rating_text AS review, TO_CHAR(date, 'YYY-MM-DD') AS date
|
||||
\\FROM albumratings
|
||||
\\WHERE album = $1
|
||||
\\ORDER BY date DESC;
|
||||
,
|
||||
else => unreachable,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue