Mehr Änderungen auf Betroffene

This commit is contained in:
2024-05-13 16:37:40 +02:00
parent b678fb01da
commit 9b6ba29650
2 changed files with 10 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ def input_code():
if ';' in scancode:
kompletter_qrcode = scancode
nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, _, _, _, _, _, _, _ = kompletter_qrcode.split(";")
nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, _, _, _, _, _, _ = kompletter_qrcode.split(";")
kompletter_name = nachname + ", " + vorname
print("AUSGABE DER DATEN")
@@ -77,8 +77,8 @@ def main():
input_code()
elif (menu_auswahl == 2):
print("SORRY - 2")
elif (menu_auswahl == 3):
print("SORRY - 3")
elif (menu_auswahl == 3):
print("SORRY - 3")
elif (menu_auswahl == 4):
make_qrcode()
elif (menu_auswahl == 5):

View File

@@ -1,3 +1,8 @@
# Betroffene BY DANIEL SCHLAPA
# 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 openpyxl
from openpyxl.styles import Font
@@ -10,7 +15,7 @@ def make_tabellen_ueberschrift():
tabelle1['A1'] = 'Name'
tabelle1['B1'] = 'Vorname'
tabelle1['C1'] = 'Geburtsdatum'
tabelle1['D1'] = 'Hilfsorganisation'
tabelle1['D1'] = 'Geschlecht'
tabelle1['E1'] = 'PLZ'
tabelle1['F1'] = 'Ort'
tabelle1['G1'] = 'Nationalität'
@@ -19,15 +24,13 @@ def make_tabellen_ueberschrift():
tabelle1['J1'] = 'Kommt Zeit'
tabelle1['K1'] = 'Geht Datum'
tabelle1['L1'] = 'Geht Zeit'
tabelle1['M1'] = 'Position'
tabelle1['N1'] = 'Geschlecht'
schrift_fett = Font(bold=True)
for col in range(1, 15):
cell = tabelle1.cell(row=1, column=col)
cell.font = schrift_fett
workbook.save('Registrierliste.xlsx')
workbook.save('Betroffeneliste.xlsx')
def main():