Filter out non-critcal non-available episodes

This commit is contained in:
Zoe Roux
2026-04-03 19:58:06 +02:00
parent d1aeadacee
commit 6d8e60820e
3 changed files with 9 additions and 8 deletions
+1
View File
@@ -83,6 +83,7 @@ export const entryFilters: FilterDef = {
order: { column: entries.order, type: "float" },
runtime: { column: entries.runtime, type: "float" },
airDate: { column: entries.airDate, type: "date" },
content: { column: entries.content, type: "enum", values: EntryContent.enum },
playedDate: { column: entryProgressQ.playedDate, type: "date" },
isAvailable: { column: isNotNull(entries.availableSince), type: "bool" },
};
+1 -6
View File
@@ -1,12 +1,7 @@
import { t } from "elysia";
import { Image } from "../utils/image";
export const EntryContent = t.Union([
t.Literal("story"),
t.Literal("recap"),
t.Literal("filler"),
t.Literal("ova"),
]);
export const EntryContent = t.UnionEnum(["story", "recap", "filler", "ova"]);
export const BaseEntry = () =>
t.Object({