Return-Werte

This commit is contained in:
2024-01-18 21:12:52 +01:00
parent d64c7aee42
commit b3e2e58eed

View File

@@ -27,7 +27,7 @@ def input_code():
if ';' in scancode:
kompletter_qrcode = scancode
nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, null, hiorg, null, null, null, null = kompletter_qrcode.split(";")
nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, _, hiorg, _, _, _, _ = kompletter_qrcode.split(";")
kompletter_name = nachname + ", " + vorname
print("AUSGABE DER DATEN")
@@ -47,12 +47,15 @@ def input_code():
else:
print("Code: " + scancode)
return nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, hiorg
def make_qrcode():
dateinname_qrcode = input("Dateiname: ").strip()
img = qrcode.make('Daniel')
img.save(dateinname_qrcode + ".png")
print("QR-Code " + dateinname_qrcode + ".png" + " wurde erstellt.")
return dateinname_qrcode
def main():