Arbeitskartencode hinzugefügt
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Registrierung BY DANIEL SCHLAPA
|
||||
|
||||
# Bsp. QRCODE: Mustermann;Max;01.01.1982;m;40000;Musterdorf;deutsch;Musterstrasse;;Düsseldorf;Deutsches Rotes Kreuz ;;;;
|
||||
# qrcode = "ustermann;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 ;;;;"
|
||||
|
||||
import time
|
||||
import qrcode
|
||||
@@ -23,7 +23,8 @@ else:
|
||||
|
||||
|
||||
def input_code():
|
||||
scancode = input("Scan den Code: ").strip()
|
||||
scancode = input("Scan den Helfer QR-Code: ").strip()
|
||||
arbeitskartencode = input("Scan den Arbeitskartencode: ").strip()
|
||||
|
||||
if ';' in scancode:
|
||||
kompletter_qrcode = scancode
|
||||
@@ -41,13 +42,14 @@ def input_code():
|
||||
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}")
|
||||
else:
|
||||
print("Code: " + scancode)
|
||||
|
||||
return nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, hiorg
|
||||
return nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, hiorg, arbeitskartencode
|
||||
|
||||
|
||||
def make_qrcode():
|
||||
|
||||
Reference in New Issue
Block a user