mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-12-13 15:26:17 +00:00
Zeitprobleme (Sommerzeit, Strompreis + 0:00)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user