diff --git a/Registrierung.py b/Betroffne.py similarity index 69% rename from Registrierung.py rename to Betroffne.py index 231ea25..1c8f99c 100644 --- a/Registrierung.py +++ b/Betroffne.py @@ -1,7 +1,7 @@ -# Registrierung BY DANIEL SCHLAPA +# Betroffene BY DANIEL SCHLAPA -# Bsp. QRCODE: Mustermann;Max;01.01.1982;m;40000;Musterdorf;deutsch;Musterstrasse;;Düsseldorf;Deutsches Rotes Kreuz ;;;; -# qrcode = "Mustermann;Max;01.01.1982;m;40000;Musterdorf;deutsch;Musterstrasse;;Düsseldorf;Deutsches Rotes Kreuz ;;;;" +# 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 time import qrcode @@ -24,11 +24,10 @@ else: def input_code(): scancode = input("Scan den QR-Code: ").strip() - arbeitskartencode = input("Scan den Arbeitskartencode: ").strip() if ';' in scancode: kompletter_qrcode = scancode - nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, _, hiorg, _, _, _, _ = kompletter_qrcode.split(";") + nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, _, _, _, _, _, _, _ = kompletter_qrcode.split(";") kompletter_name = nachname + ", " + vorname print("AUSGABE DER DATEN") @@ -41,15 +40,13 @@ def input_code(): print("Geburtsdatum: " + geburtsdatum) print("Geschlecht: " + geschlecht) print("Nationalität: " + nationalitaet) - print("Hilfsorganisation: " + hiorg) - print("Arbeitskartencode:" + arbeitskartencode) start_datum = time.strftime("%d.%m.%Y") start_uhrzeit = time.strftime("%H:%M:%S") - print(f"Einsatzbeginn: {start_datum} - {start_uhrzeit}") + print(f"Erfasst um: {start_datum} - {start_uhrzeit}") else: print("Code: " + scancode) - return nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, hiorg, arbeitskartencode + return nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse def make_qrcode(): @@ -63,14 +60,15 @@ def make_qrcode(): def main(): print("""Menü ---- -[1] - Einregistrieren -[2] - Ausregistrieren +[1] - Betroffne einregistrieren +[2] - Betroffne ausregistrieren +[3] - Betroffne suchen -[3] - QR-Code erstellen +[4] - QR-Code erstellen -[4] - Test +[5] - Test -[5] - Ende""") +[6] - Ende""") while True: menu_auswahl = int(input("Menüpunkt: ")) @@ -79,11 +77,13 @@ def main(): input_code() elif (menu_auswahl == 2): print("SORRY - 2") - elif (menu_auswahl == 3): - make_qrcode() + elif (menu_auswahl == 3): + print("SORRY - 3") elif (menu_auswahl == 4): - print("SORRY - 4") + make_qrcode() elif (menu_auswahl == 5): + print("SORRY - 5") + elif (menu_auswahl == 6): return else: print("Auswahl ist ungültig!") diff --git a/MustermannMax_qrcode.png b/MustermannMax_qrcode.png new file mode 100644 index 0000000..8bc5773 Binary files /dev/null and b/MustermannMax_qrcode.png differ