Showing non-showcased batches in latest and upcoming, only meant to be excluded from new.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user