Added batch showcase in manticore scene update.
This commit is contained in:
parent
2a4b0e9636
commit
894eaeb43f
|
@ -39,8 +39,10 @@ async function fetchScenes() {
|
||||||
studios.showcased IS NOT false
|
studios.showcased IS NOT false
|
||||||
AND (entities.showcased IS NOT false OR COALESCE(studios.showcased, false) = true)
|
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 (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
|
AS showcased
|
||||||
FROM releases
|
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 scenes_meta ON scenes_meta.scene_id = releases.id
|
||||||
LEFT JOIN entities ON releases.entity_id = entities.id
|
LEFT JOIN entities ON releases.entity_id = entities.id
|
||||||
LEFT JOIN entities AS parents ON parents.id = entities.parent_id
|
LEFT JOIN entities AS parents ON parents.id = entities.parent_id
|
||||||
|
@ -62,6 +64,7 @@ async function fetchScenes() {
|
||||||
releases.date,
|
releases.date,
|
||||||
releases.shoot_id,
|
releases.shoot_id,
|
||||||
scenes_meta.stashed,
|
scenes_meta.stashed,
|
||||||
|
releases_summaries.batch_showcased,
|
||||||
entities.id,
|
entities.id,
|
||||||
entities.name,
|
entities.name,
|
||||||
entities.slug,
|
entities.slug,
|
||||||
|
|
|
@ -77,8 +77,10 @@ async function updateManticoreSceneSearch(releaseIds) {
|
||||||
studios.showcased IS NOT false
|
studios.showcased IS NOT false
|
||||||
AND (entities.showcased IS NOT false OR COALESCE(studios.showcased, false) = true)
|
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 (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
|
AS showcased
|
||||||
FROM releases
|
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 scenes_meta ON scenes_meta.scene_id = releases.id
|
||||||
LEFT JOIN entities ON releases.entity_id = entities.id
|
LEFT JOIN entities ON releases.entity_id = entities.id
|
||||||
LEFT JOIN entities AS parents ON parents.id = entities.parent_id
|
LEFT JOIN entities AS parents ON parents.id = entities.parent_id
|
||||||
|
@ -101,6 +103,7 @@ async function updateManticoreSceneSearch(releaseIds) {
|
||||||
releases.date,
|
releases.date,
|
||||||
releases.shoot_id,
|
releases.shoot_id,
|
||||||
scenes_meta.stashed,
|
scenes_meta.stashed,
|
||||||
|
releases_summaries.batch_showcased,
|
||||||
entities.id,
|
entities.id,
|
||||||
entities.name,
|
entities.name,
|
||||||
entities.slug,
|
entities.slug,
|
||||||
|
|
Loading…
Reference in New Issue