chore: remove old filters, hardcoded types, old post status from view

This commit is contained in:
Cory Dransfeldt 2024-10-13 15:51:27 -07:00
parent ffea333d55
commit 76a172bb74
No known key found for this signature in database
15 changed files with 15 additions and 48 deletions

View file

@ -13,7 +13,6 @@ SELECT
CONCAT('/', df.filename_disk) AS image,
b.favorite,
b.tattoo,
'book' AS type,
(
SELECT array_agg(t.name)

View file

@ -11,7 +11,6 @@ SELECT
m.star_rating AS rating,
m.description,
m.review,
'movie' AS type,
m.slug AS url,
CONCAT('/', df.filename_disk) AS image,
CONCAT('/', df2.filename_disk) AS backdrop,

View file

@ -3,7 +3,7 @@ SELECT
ar.name_string AS name,
ar.slug AS url,
ar.tentative,
ar.total_plays AS totalPlays,
ar.total_plays,
ar.country,
ar.description,
ar.favorite,
@ -27,8 +27,8 @@ SELECT
(
SELECT json_agg(json_build_object(
'name', a.name,
'releaseYear', a.release_year,
'totalPlays', a.total_plays,
'release_year', a.release_year,
'total_plays', a.total_plays,
'art', df_album.filename_disk
) ORDER BY a.release_year)
FROM albums a

View file

@ -29,7 +29,6 @@ SELECT
) AS grid,
json_build_object(
'type', 'tv',
'title', s.title,
'year', s.year,
'url', s.slug,