From 894eaeb43f790db83f311a843b578986ba479279 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 5 Jun 2024 23:04:07 +0200 Subject: [PATCH] Added batch showcase in manticore scene update. --- src/tools/manticore-scenes.js | 3 +++ src/update-search.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/tools/manticore-scenes.js b/src/tools/manticore-scenes.js index e9e57f98..3561e600 100644 --- a/src/tools/manticore-scenes.js +++ b/src/tools/manticore-scenes.js @@ -39,8 +39,10 @@ async function fetchScenes() { studios.showcased IS NOT false AND (entities.showcased IS NOT false OR COALESCE(studios.showcased, false) = true) AND (parents.showcased IS NOT false OR COALESCE(entities.showcased, false) = true OR COALESCE(studios.showcased, false) = true) + AND (releases_summaries.batch_showcased IS NOT false) AS showcased FROM releases + LEFT JOIN releases_summaries ON releases_summaries.release_id = releases.id LEFT JOIN scenes_meta ON scenes_meta.scene_id = releases.id LEFT JOIN entities ON releases.entity_id = entities.id LEFT JOIN entities AS parents ON parents.id = entities.parent_id @@ -62,6 +64,7 @@ async function fetchScenes() { releases.date, releases.shoot_id, scenes_meta.stashed, + releases_summaries.batch_showcased, entities.id, entities.name, entities.slug, diff --git a/src/update-search.js b/src/update-search.js index 880a30f3..5652692f 100644 --- a/src/update-search.js +++ b/src/update-search.js @@ -77,8 +77,10 @@ async function updateManticoreSceneSearch(releaseIds) { studios.showcased IS NOT false AND (entities.showcased IS NOT false OR COALESCE(studios.showcased, false) = true) AND (parents.showcased IS NOT false OR COALESCE(entities.showcased, false) = true OR COALESCE(studios.showcased, false) = true) + AND (releases_summaries.batch_showcased IS NOT false) AS showcased FROM releases + LEFT JOIN releases_summaries ON releases_summaries.release_id = releases.id LEFT JOIN scenes_meta ON scenes_meta.scene_id = releases.id LEFT JOIN entities ON releases.entity_id = entities.id LEFT JOIN entities AS parents ON parents.id = entities.parent_id @@ -101,6 +103,7 @@ async function updateManticoreSceneSearch(releaseIds) { releases.date, releases.shoot_id, scenes_meta.stashed, + releases_summaries.batch_showcased, entities.id, entities.name, entities.slug,