This commit is contained in:
2025-07-01 07:31:13 +00:00
parent a48b785508
commit e852919a28

View File

@@ -989,7 +989,7 @@ def evaluate_branche_chatgpt(crm_branche, beschreibung, wiki_branche, wiki_kateg
line_lower = line_stripped.lower() # WICHTIG: Variable wieder einführen
# Flexibleres Parsing mit Regex, ignoriert Groß/Kleinschreibung
branch_match = re.match(r"^(Branche|Branchenzuordnung):\s*(.*)", line_stripped, re.IGNORECASE)
branch_match = re.match(r"^(Branche|Branchenzuordnung|Branchenwahl):\s*(.*)", line_stripped, re.IGNORECASE)
if branch_match:
suggested_branch = branch_match.group(2).strip().strip('"\'')
parsed_branch = True