fix for the issue implementet

This commit is contained in:
2026-09-23 21:35:34 +02:00
parent a158d16f62
commit 72e8a8cf5d
+1 -1
View File
@@ -2301,7 +2301,7 @@ def _upload_student_cards_excel():
row_errors.append('Vorname und Nachname fehlen') row_errors.append('Vorname und Nachname fehlen')
if not ausweis_id and student_name: if not ausweis_id and student_name:
ausweis_id = generate_ausweis_id(existing_ids) ausweis_id = generate_ausweis_id()
validation_warnings.append((row_number, f'Ausweis-ID wurde automatisch erzeugt: {ausweis_id}')) validation_warnings.append((row_number, f'Ausweis-ID wurde automatisch erzeugt: {ausweis_id}'))
existing_ids.add(ausweis_id.upper()) existing_ids.add(ausweis_id.upper())
elif ausweis_id and not rollover_mode: elif ausweis_id and not rollover_mode: