Add version

This commit is contained in:
elpatron68
2024-05-27 13:29:42 +02:00
parent 08705ae44e
commit 2440963afc
2 changed files with 6 additions and 3 deletions

7
app.py
View File

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