Änderung auf Betroffene

This commit is contained in:
2024-05-13 16:25:59 +02:00
parent e774b41d04
commit bcf9a71d40
2 changed files with 17 additions and 17 deletions

View File

@@ -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: "))
@@ -80,10 +78,12 @@ def main():
elif (menu_auswahl == 2):
print("SORRY - 2")
elif (menu_auswahl == 3):
make_qrcode()
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!")

BIN
MustermannMax_qrcode.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB