feat: Implement genre activation/deactivation with UI controls and main page filtering.

This commit is contained in:
Hördle Bot
2025-11-25 00:20:29 +01:00
parent a744393335
commit 41ce6c12ce
5 changed files with 59 additions and 9 deletions

View File

@@ -9,7 +9,10 @@ const prisma = new PrismaClient();
export default async function Home() {
const dailyPuzzle = await getOrCreateDailyPuzzle(null); // Global puzzle
const genres = await prisma.genre.findMany({ orderBy: { name: 'asc' } });
const genres = await prisma.genre.findMany({
where: { active: true },
orderBy: { name: 'asc' }
});
const specials = await prisma.special.findMany({ orderBy: { name: 'asc' } });
const now = new Date();