Compare commits

..

4 Commits

Author SHA1 Message Date
1a12dcd1d0 Neue Preise, neue Artikel 2024-06-24 13:52:54 +02:00
elpatron68
9f7bc8086c increase version 2024-05-29 16:15:48 +02:00
elpatron68
833287222d Change price 2024-05-29 16:15:16 +02:00
elpatron68
e2cdaf059a Update README 2024-05-28 16:59:11 +02:00
3 changed files with 13 additions and 13 deletions

View File

@@ -55,14 +55,14 @@ Die App *erdbeerhannah* protokolliert keinerlei Daten. Keine IP-Adressen, keine
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2024 Markus Busche; Knorrstr. 16, 24106 Kiel, Germany
Copyright (C) 2024 Markus Busche; Knorrstr. 16, 24106 Kiel, Germany
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
```

8
app.py
View File

@@ -18,7 +18,7 @@ app.logger.addHandler(handler)
Bootstrap(app)
version = "1.0.8/2024-05-28"
version = "1.0.9/2024-05-28"
postcounter = 0
gesamtwert = 0
change = 0
@@ -85,15 +85,15 @@ def index():
sum = str(gesamtwert) + "0"
# summarize items
if wertfloat == 5.8:
if wertfloat == 4.9:
item1 += 1
if wertfloat == 4.8:
item2 += 1
if wertfloat == 3.3:
item3 += 1
if wertfloat == 8.8:
if wertfloat == 4.5:
item4 += 1
if wertfloat == 5.5:
if wertfloat == 5:
item5 += 1
if wertfloat == .2:
item6 += 1

View File

@@ -87,13 +87,13 @@
<td colspan="3">erdbeerrechner 🍓💶</td>
</tr>
<tr>
<td><button type="submit" name="wert" value="5.8" data-toggle="tooltip" data-placement="top" title="500g Erdbeeren" class="btn btn-xl btn-primary custom-btn-size">🍓 5,80€ ({{ item1 }})</button></td>
<td><button type="submit" name="wert" value="4.9" data-toggle="tooltip" data-placement="top" title="500g Erdbeeren" class="btn btn-xl btn-primary custom-btn-size">🍓 4,90€ ({{ item1 }})</button></td>
<td><button type="submit" name="wert" value="4.8" data-toggle="tooltip" data-placement="top" title="Marmelade groß" class="btn btn-xl btn-danger custom-btn-size">🫙🫙 4,80€ ({{ item2 }})</button></td>
<td><button type="submit" name="wert" value="3.3" data-toggle="tooltip" data-placement="top" title="Marmelade klein" class="btn btn-xl btn-danger custom-btn-size">🫙 3,30€ ({{ item3 }})</button></td>
</tr>
<tr>
<td><button type="submit" name="wert" value="8.8" data-toggle="tooltip" data-placement="top" title="Saft 5l" class="btn btn-xl btn-warning custom-btn-size">🧃🧃 8,80€ ({{ item4 }})</button></td>
<td><button type="submit" name="wert" value="5.5" data-toggle="tooltip" data-placement="top" title="Saft 3l" class="btn btn-xl btn-warning custom-btn-size">🧃 5,50€ ({{ item5 }})</button></td>
<td><button type="submit" name="wert" value="5.0" data-toggle="tooltip" data-placement="top" title="500g Kirschen" class="btn btn-xl btn-warning custom-btn-size">🍒 5,00€ ({{ item4 }})</button></td>
<td><button type="submit" name="wert" value="4.5" data-toggle="tooltip" data-placement="top" title="500g Himbeeren" class="btn btn-xl btn-warning custom-btn-size">🫐 4,50€ ({{ item5 }})</button></td>
<td><button type="submit" name="wert" value="0.2" data-toggle="tooltip" data-placement="top" title="Tragetasche" class="btn btn-xl btn-success custom-btn-size">🛍️ 0,20€ ({{ item6 }})</button></td>
</tr>
<tr>