diff --git a/brancheneinstufung.py b/brancheneinstufung.py index e16fa406..1ecaf351 100644 --- a/brancheneinstufung.py +++ b/brancheneinstufung.py @@ -163,10 +163,13 @@ for i in range(start, min(start + DURCHLÄUFE, len(sheet_values))): url, wiki_branche, umsatz = get_wikipedia_data(row[0], row[1]) wiki, linkedin, umsatz_chat, new_cat, reason, fsm, techniker, techniker_reason = classify_company(row) + wiki_final = wiki_branche if wiki_branche != "k.A." else wiki +umsatz_final = umsatz if umsatz != "k.A." else umsatz_chat + values = [ - wiki or wiki_branche, + wiki_final, linkedin, - umsatz_chat or umsatz, + umsatz_final, new_cat, reason, fsm,