chore: clean up rating display
This commit is contained in:
parent
adccf0ffcc
commit
ada27f0858
2 changed files with 4 additions and 4 deletions
|
@ -96,7 +96,7 @@ SELECT
|
|||
'subtext',
|
||||
CASE
|
||||
WHEN b.star_rating IS NOT NULL
|
||||
THEN CONCAT('(', b.star_rating, ')')
|
||||
THEN b.star_rating
|
||||
ELSE NULL
|
||||
END
|
||||
) AS grid,
|
||||
|
|
|
@ -23,8 +23,8 @@ SELECT
|
|||
'backdrop', CONCAT('/', df2.filename_disk),
|
||||
'alt', CONCAT(m.title, ' (', m.year, ')'),
|
||||
'subtext', CASE
|
||||
WHEN m.star_rating IS NOT NULL THEN CONCAT(m.year, ' (', m.star_rating, ')')
|
||||
ELSE m.year::TEXT
|
||||
WHEN m.star_rating IS NOT NULL THEN CONCAT(m.star_rating, ' (', m.year, ')')
|
||||
ELSE CONCAT('(', m.year, ')')
|
||||
END
|
||||
) AS grid,
|
||||
|
||||
|
|
Reference in a new issue