Zeitprobleme (Sommerzeit, Strompreis + 0:00)

This commit is contained in:
Bla Bla
2024-04-01 13:16:24 +02:00
parent c265885286
commit 9ab5ecf9ed
6 changed files with 35 additions and 52 deletions

View File

@@ -36,7 +36,7 @@ def isfloat(num):
try:
float(num)
return True
except ValueError:
except:
return False
@@ -231,10 +231,6 @@ def simulation():
if p not in parameter:
return jsonify({"error": f"Fehlender Parameter: {p}"}), 400
# Optional Typen der Parameter prüfen und sicherstellen, dass sie den Erwartungen entsprechen
# if not isinstance(parameter['start_hour'], int):
# return jsonify({"error": "start_hour muss vom Typ int sein"}), 400
# Simulation durchführen
ergebnis = durchfuehre_simulation(parameter)