Return-Werte
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user