X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/SVBaL.git/blobdiff_plain/6d9420770607494aae2960fab4eb795bb67b8d3d..c26bbbe8da70c2caee4efb18921fe349d1650f3c:/python/eh_util/eh_app/AWK/routines.py diff --git a/python/eh_util/eh_app/AWK/routines.py b/python/eh_util/eh_app/AWK/routines.py index fffbfaa..b09af1d 100644 --- a/python/eh_util/eh_app/AWK/routines.py +++ b/python/eh_util/eh_app/AWK/routines.py @@ -9,8 +9,8 @@ def handle_uploaded_file(csv_file): for chunk in csv_file.chunks(): destination.write(chunk) ''' -def aktualisiere_config(config, data, file): - +def aktualisiere_config(config, vorlagen_data, beitrag_data): + ''' if file: uploaded_file = file.name data_path = config.requireConfig("data_path") @@ -19,12 +19,14 @@ def aktualisiere_config(config, data, file): for chunk in file.chunks(): destination.write(chunk) config.setConfig("briefpapier", uploaded_file) + ''' + if vorlagen_data["vorlage"]: + config.setConfig("vorlage", vorlagen_data["vorlage"]) + if beitrag_data["basisbeitrag"]: + config.setConfig("beitrag_basis", beitrag_data["basisbeitrag"]) - if data["basisbeitrag"]: - config.setConfig("beitrag_basis", data["basisbeitrag"]) - - if data["zusatzbeitrag"]: - config.setConfig("beitrag_zusatz", data["zusatzbeitrag"]) + if beitrag_data["zusatzbeitrag"]: + config.setConfig("beitrag_zusatz", beitrag_data["zusatzbeitrag"]) def erstelle_ehmeldung(data): from PyPDF2 import PdfFileWriter, PdfFileReader