diff --git a/views/media/books.psql b/views/media/books.psql index 7fe0a4e7..dd31b47e 100644 --- a/views/media/books.psql +++ b/views/media/books.psql @@ -96,8 +96,8 @@ SELECT 'subtext', CASE WHEN b.star_rating IS NOT NULL - THEN CONCAT(EXTRACT(YEAR FROM b.date_finished), ' (', b.star_rating, ')') - ELSE EXTRACT(YEAR FROM b.date_finished)::TEXT + THEN CONCAT('(', b.star_rating, ')') + ELSE NULL END ) AS grid,