From: Simon Wagner Date: Wed, 2 Apr 2025 10:09:00 +0000 (+0200) Subject: commit bevor kassenschreiben merge X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/SVBaL.git/commitdiff_plain/ed9cea54f4fc08fb84b4cad84eeac188987edb7f commit bevor kassenschreiben merge --- diff --git a/python/eh_util/eh_app/AWK/routines.py b/python/eh_util/eh_app/AWK/routines.py index c608328..3909448 100644 --- a/python/eh_util/eh_app/AWK/routines.py +++ b/python/eh_util/eh_app/AWK/routines.py @@ -9,7 +9,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") @@ -18,10 +18,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"]) diff --git a/python/eh_util/eh_util/settings.py b/python/eh_util/eh_util/settings.py index 1264b3c..0517206 100644 --- a/python/eh_util/eh_util/settings.py +++ b/python/eh_util/eh_util/settings.py @@ -79,7 +79,7 @@ WSGI_APPLICATION = 'eh_util.wsgi.application' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': '/var/django/eh_util.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } }