refactor: remove chapter 11 (Plaetzchen) and all its 11 recipes
This commit is contained in:
+2
-3
@@ -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]]
|
||||
|
||||
+1
-2
@@ -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 ---
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user