X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/SVBaL.git/blobdiff_plain/a1ada2c359ac81c9fd262cea095f4440bf533efc..c59f6a9e89733c57db4985ab6f9958143231715d:/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 1cf27bc..4a98c0e 100644 --- a/python/eh_util/eh_app/AWK/routines.py +++ b/python/eh_util/eh_app/AWK/routines.py @@ -10,7 +10,7 @@ def handle_uploaded_file(csv_file): destination.write(chunk) ''' def aktualisiere_config(config, data, file): - + if file: uploaded_file = file.name data_path = config.requireConfig("data_path") @@ -19,10 +19,10 @@ def aktualisiere_config(config, data, file): for chunk in file.chunks(): destination.write(chunk) config.setConfig("briefpapier", uploaded_file) - + if data["basisbeitrag"]: config.setConfig("beitrag_basis", data["basisbeitrag"]) - + if data["zusatzbeitrag"]: config.setConfig("beitrag_zusatz", data["zusatzbeitrag"])