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 @@