This commit is contained in:
2025-04-15 14:06:56 +00:00
parent 8d59f27e82
commit 7d5d347cb4

View File

@@ -554,7 +554,7 @@ def evaluate_branche_chatgpt(crm_branche, beschreibung, wiki_branche, wiki_kateg
elif crm_branche and crm_branche != "k.A.": # Wenn CRM schon Kurzform sein könnte
crm_short_branch = crm_branche.strip()
# --- HIER DIE NEUEN DEBUG-AUSGABEN ---
debug_print(f"Fallback Debug: Prüfe CRM-Kurzform.")
debug_print(f" -> Extrahierte CRM-Kurzform: '{crm_short_branch}' (Typ: {type(crm_short_branch)})")
crm_short_branch_lower = crm_short_branch.lower()
@@ -565,7 +565,7 @@ def evaluate_branche_chatgpt(crm_branche, beschreibung, wiki_branche, wiki_kateg
debug_print(f" -> Prüfe gegen Lookup-Keys: {lookup_keys_sample}")
else:
debug_print(f" -> Prüfe gegen Lookup-Keys (erste 10): {lookup_keys_sample[:10]}")
# -------------------------------------
# Der eigentliche Check
if crm_short_branch != "k.A." and crm_short_branch_lower in allowed_branches_lookup: