Fußzeile angepasst

This commit is contained in:
2025-12-29 14:19:48 +01:00
parent f2cd9bff85
commit 2687f72700
4 changed files with 7 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
+7 -1
View File
@@ -84,9 +84,15 @@ for zeile in inhalt:
continue
print(" ")
# Fusszeile mit Gesamtkosten und Gesamtverbrauch
print('Kosten Gesamt: ', kosten_gesamt)
strkostenkwh = str(kosten_pro_kwh)
print("Kosten pro kWh: " + strkostenkwh + "")
verbrauch_gesamt = str(verbrauch_gesamt)
print("Verbrauch Gesamt: " + verbrauch_gesamt)
try:
formatted = "{:.3f}".format(float(verbrauch_gesamt)).replace('.', ',')
except:
formatted = verbrauch_gesamt
print("Verbrauch Gesamt: " + formatted)