Don´t reset items when clicking change button
This commit is contained in:
10
app.py
10
app.py
@@ -40,7 +40,7 @@ def index():
|
||||
item4 = 0
|
||||
item5 = 0
|
||||
item6 = 0
|
||||
else:
|
||||
elif wertfloat != -2:
|
||||
gesamtwert += wertfloat
|
||||
gesamtwert = round(gesamtwert, 2)
|
||||
if gesamtwert > 0:
|
||||
@@ -91,5 +91,13 @@ def favicon():
|
||||
'favicon.ico', mimetype='image/vnd.microsoft.icon')
|
||||
|
||||
if __name__ == "__main__":
|
||||
directory = './log'
|
||||
if not os.path.exists(directory):
|
||||
# Create the directory
|
||||
os.makedirs(directory)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logging.basicConfig(filename='./log/example.log', encoding='utf-8', level=logging.DEBUG)
|
||||
|
||||
logging.info('Starting erdbeerhannah v1.0')
|
||||
app.run(debug=True, host='0.0.0.0')
|
16
log/example.log
Normal file
16
log/example.log
Normal file
@@ -0,0 +1,16 @@
|
||||
INFO:root:Starting erdbeerhannah v1.0
|
||||
INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
||||
* Running on all addresses (0.0.0.0)
|
||||
* Running on http://127.0.0.1:5000
|
||||
* Running on http://192.168.177.24:5000
|
||||
INFO:werkzeug:[33mPress CTRL+C to quit[0m
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:Starting erdbeerhannah v1.0
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 213-823-308
|
||||
INFO:werkzeug:192.168.177.24 - - [26/May/2024 11:45:06] "POST / HTTP/1.1" 200 -
|
||||
INFO:werkzeug:192.168.177.24 - - [26/May/2024 11:45:06] "[36mGET /favicon.ico HTTP/1.1[0m" 304 -
|
||||
INFO:werkzeug:192.168.177.24 - - [26/May/2024 11:45:07] "POST / HTTP/1.1" 200 -
|
||||
INFO:werkzeug:192.168.177.24 - - [26/May/2024 11:45:08] "POST / HTTP/1.1" 200 -
|
||||
INFO:werkzeug:192.168.177.24 - - [26/May/2024 11:45:13] "POST / HTTP/1.1" 200 -
|
||||
INFO:werkzeug:192.168.177.24 - - [26/May/2024 11:45:19] "POST / HTTP/1.1" 200 -
|
@@ -81,7 +81,7 @@
|
||||
<td>
|
||||
<div class="input-container">
|
||||
<input type="text" class="form-control" name="given" placeholder="{{ given }}">
|
||||
<button type="submit" class="btn btn-xl btn-primary custom-btn-size-med">🧾</button>
|
||||
<button type="submit" name="wert" value="-2" class="btn btn-xl btn-primary custom-btn-size-med">🧾</button>
|
||||
</div>
|
||||
</td>
|
||||
<td class="bold-row">🪙 {{ change }}€</td>
|
||||
|
Reference in New Issue
Block a user