From 2440963afc86a64f2b8d0c51fc05b2f9e50d96a7 Mon Sep 17 00:00:00 2001 From: elpatron68 Date: Mon, 27 May 2024 13:29:42 +0200 Subject: [PATCH] Add version --- app.py | 7 +++++-- templates/index.html | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 5eb73fd..37fd6e2 100644 --- a/app.py +++ b/app.py @@ -14,10 +14,10 @@ handler = logging.StreamHandler() handler.setFormatter(formatter) app.logger.setLevel(logging.DEBUG) app.logger.addHandler(handler) -app.logger.info('Starting erdbeerhannah v1.0.5') Bootstrap(app) +version = "1.0.5" postcounter = 0 gesamtwert = 0 change = 0 @@ -30,9 +30,11 @@ item4 = 0 item5 = 0 item6 = 0 +app.logger.info('Starting erdbeerhannah v' + version) + @app.route("/", methods=["GET", "POST"]) def index(): - global gesamtwert, item1, item2, item3, item4, item5, item6, sum, givenfloat, change, given, background, postcounter + global gesamtwert, item1, item2, item3, item4, item5, item6, sum, givenfloat, change, given, background, postcounter, version background = "bg-white" if request.method == "POST": @@ -113,6 +115,7 @@ def index(): item5=session.get('item5', 0), item6=session.get('item6', 0), background=background, + version=version, ) @app.route('/favicon.ico') diff --git a/templates/index.html b/templates/index.html index ebae04a..a844893 100644 --- a/templates/index.html +++ b/templates/index.html @@ -111,7 +111,7 @@ Made with ♥️, marmalade and zero knowledge in Kiel Strawberry City.
- Version: 1.0.5/2024-05-27
+ Version: {{ version }}/2024-05-27
Weitere Infos