diff --git a/app/database.py b/app/database.py index 7f16ccc..5a45706 100755 --- a/app/database.py +++ b/app/database.py @@ -37,7 +37,7 @@ LEGACY_CATEGORIES = [ "Fisch" ] -# 11 Kochbuch-Kapitel aus dem Benutzerentwurf mit handgezeichneten Doodles & Icons +# 10 Kochbuch-Kapitel aus dem Benutzerentwurf mit handgezeichneten Doodles & Icons CHAPTERS = [ {"number": 1, "title": "Suppen & Eintöpfe", "icon": "🍲", "doodle_hint": "Dampfende Suppenschale", "illustration_url": "/static/img/chapters/chapter_1.png"}, {"number": 2, "title": "Traditionell & Basics", "icon": "🥟", "doodle_hint": "Klassiker & Brotzeit", "illustration_url": "/static/img/chapters/chapter_2.png"}, @@ -48,8 +48,7 @@ CHAPTERS = [ {"number": 7, "title": "Asiatische Küche", "icon": "🥢", "doodle_hint": "Wok, Ramen & Thai-Curry", "illustration_url": "/static/img/chapters/chapter_7.png"}, {"number": 8, "title": "Süßspeisen", "icon": "🥞", "doodle_hint": "Kaiserschmarrn & Knödel", "illustration_url": "/static/img/chapters/chapter_8.png"}, {"number": 9, "title": "Desserts", "icon": "🍰", "doodle_hint": "Tiramisu & Mousse", "illustration_url": "/static/img/chapters/chapter_9.png"}, - {"number": 10, "title": "Kuchen & Gebäck", "icon": "🎂", "doodle_hint": "Torten & Feingebäck", "illustration_url": "/static/img/chapters/chapter_10.png"}, - {"number": 11, "title": "Plätzchen", "icon": "🍪", "doodle_hint": "Weihnachtsplätzchen & Kekse", "illustration_url": "/static/img/chapters/chapter_11.png"} + {"number": 10, "title": "Kuchen & Gebäck", "icon": "🎂", "doodle_hint": "Torten & Feingebäck", "illustration_url": "/static/img/chapters/chapter_10.png"} ] CATEGORIES = [c["title"] for c in CHAPTERS] + [c for c in LEGACY_CATEGORIES if c not in [ch["title"] for ch in CHAPTERS]] diff --git a/app/main.py b/app/main.py index 51a76d3..f95068b 100755 --- a/app/main.py +++ b/app/main.py @@ -141,8 +141,7 @@ CHAPTER_TO_DISH_CAT = { "Asiatische Küche": "asiatisch", "Süßspeisen": "Süßspeisen", "Desserts": "Süßspeisen", - "Kuchen & Gebäck": "Süßspeisen", - "Plätzchen": "Süßspeisen" + "Kuchen & Gebäck": "Süßspeisen" } # --- Pydantic Models --- diff --git a/app/templates/cookbook.html b/app/templates/cookbook.html index 5033396..e68c160 100755 --- a/app/templates/cookbook.html +++ b/app/templates/cookbook.html @@ -1600,8 +1600,8 @@ ]; const TOTAL_RECIPES = {{ total_recipes }}; - // Filter für Zufallsgenerator: Kategorien Desserts (9), Kuchen & Gebäck (10) und Plätzchen (11) ausschließen - const SHUFFLE_CHAPTERS = GEN_CHAPTERS.filter(c => c.number !== 9 && c.number !== 10 && c.number !== 11); + // Filter für Zufallsgenerator: Kategorien Desserts (9) und Kuchen & Gebäck (10) ausschließen + const SHUFFLE_CHAPTERS = GEN_CHAPTERS.filter(c => c.number !== 9 && c.number !== 10); const SHUFFLE_TOTAL_RECIPES = SHUFFLE_CHAPTERS.reduce((s, c) => s + (c.count || 0), 0); let genSlotCount = 2;