Showing non-showcased batches in latest and upcoming, only meant to be excluded from new.

This commit is contained in:
2026-11-13 22:56:51 +01:00
parent 121d31d325
commit 3645c2a0e6
9 changed files with 37 additions and 10 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
import argv from '../src/argv.js';
import { utilsApi } from '../src/manticore.js';
import { syncManticoreScenes } from '../src/sync.js';
import runTool from './run-tool.js';
import runTool, { isMain } from './run-tool.js';
export async function rebuildScenes() {
await utilsApi.sql('drop table if exists scenes');
@@ -40,6 +40,7 @@ export async function rebuildScenes() {
date bigint,
fingerprints text,
is_showcased bool,
is_batch_showcased bool,
created_at bigint,
effective_date bigint,
stashed int,
@@ -62,7 +63,7 @@ export async function rebuildScenes() {
await syncManticoreScenes();
}
if (import.meta.main) {
if (isMain(import.meta.url)) {
runTool(async () => {
if (argv.update) {
await rebuildScenes();