bugfix
This commit is contained in:
@@ -3525,10 +3525,17 @@ class DataProcessor:
|
||||
all_sheet_updates = []; processed_rows_count = 0; updated_url_count = 0; cleared_suggestion_count = 0;
|
||||
|
||||
|
||||
for idx, row in enumerate(data_rows):
|
||||
row_num_in_sheet = idx + header_rows + 1
|
||||
if limit is not None and processed_rows_count >= limit: logging.info(f"Limit ({limit}) erreicht."); break
|
||||
max_needed_idx = max(col_indices.values()); if len(row) <= max_needed_idx: logging.debug(f"Zeile {row_num_in_sheet}: Übersprungen (Zeile zu kurz)."); continue
|
||||
for idx, row in enumerate(data_rows):
|
||||
row_num_in_sheet = idx + header_rows + 1;
|
||||
if limit is not None and processed_rows_count >= limit: logging.info(f"Limit ({limit}) erreicht."); break;
|
||||
|
||||
# KORRIGIERTE ZEILEN: Trenne Zuweisung und If-Statement
|
||||
max_needed_idx = max(col_indices.values()); # Zuweisung auf eigener Zeile (z.B. 12 Leerzeichen)
|
||||
# if-Statement beginnt auf neuer Zeile und ist eingerückt (z.B. 12 Leerzeichen)
|
||||
if len(row) <= max_needed_idx:
|
||||
# Die folgenden Zeilen gehören zum If-Block und müssen weiter eingerückt sein (z.B. 16 Leerzeichen)
|
||||
logging.debug(f"Zeile {row_num_in_sheet}: Übersprungen (Zeile zu kurz).");
|
||||
continue; # continue gehört unter das if
|
||||
|
||||
# Nutze private Helfermethode _get_cell_value
|
||||
konsistenz_s = self._get_cell_value(row, "Chat Wiki Konsistenzprüfung").strip()
|
||||
|
||||
Reference in New Issue
Block a user