From 9b6ba29650d5371dd9fdebd5715f4a407e65d2b5 Mon Sep 17 00:00:00 2001 From: Daniel Schlapa Date: Mon, 13 May 2024 16:37:40 +0200 Subject: [PATCH] =?UTF-8?q?Mehr=20=C3=84nderungen=20auf=20Betroffene?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Betroffene.py | 6 +++--- Tabelle.py | 11 +++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Betroffene.py b/Betroffene.py index 1c8f99c..5a3e54c 100644 --- a/Betroffene.py +++ b/Betroffene.py @@ -27,7 +27,7 @@ def input_code(): if ';' in scancode: kompletter_qrcode = scancode - nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, _, _, _, _, _, _, _ = kompletter_qrcode.split(";") + nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, _, _, _, _, _, _ = kompletter_qrcode.split(";") kompletter_name = nachname + ", " + vorname print("AUSGABE DER DATEN") @@ -77,8 +77,8 @@ def main(): input_code() elif (menu_auswahl == 2): print("SORRY - 2") - elif (menu_auswahl == 3): - print("SORRY - 3") + elif (menu_auswahl == 3): + print("SORRY - 3") elif (menu_auswahl == 4): make_qrcode() elif (menu_auswahl == 5): diff --git a/Tabelle.py b/Tabelle.py index 755a2b9..b3151b2 100644 --- a/Tabelle.py +++ b/Tabelle.py @@ -1,3 +1,8 @@ +# Betroffene BY DANIEL SCHLAPA + +# Bsp. QRCODE: Mustermann;Max;01.01.2024;m;40000;Musterstadt;deutsch;Musterstraße 1;;;;;; +# qrcode = "Mustermann;Max;01.01.2024;m;40000;Musterstadt;deutsch;Musterstraße 1;;;;;;" + import openpyxl from openpyxl.styles import Font @@ -10,7 +15,7 @@ def make_tabellen_ueberschrift(): tabelle1['A1'] = 'Name' tabelle1['B1'] = 'Vorname' tabelle1['C1'] = 'Geburtsdatum' - tabelle1['D1'] = 'Hilfsorganisation' + tabelle1['D1'] = 'Geschlecht' tabelle1['E1'] = 'PLZ' tabelle1['F1'] = 'Ort' tabelle1['G1'] = 'Nationalität' @@ -19,15 +24,13 @@ def make_tabellen_ueberschrift(): tabelle1['J1'] = 'Kommt Zeit' tabelle1['K1'] = 'Geht Datum' tabelle1['L1'] = 'Geht Zeit' - tabelle1['M1'] = 'Position' - tabelle1['N1'] = 'Geschlecht' schrift_fett = Font(bold=True) for col in range(1, 15): cell = tabelle1.cell(row=1, column=col) cell.font = schrift_fett - workbook.save('Registrierliste.xlsx') + workbook.save('Betroffeneliste.xlsx') def main():