Commit 8519755b authored by nextime's avatar nextime

Fix minor bug in clima program where "h00" isn't saved

parent d4e03e1a
......@@ -685,7 +685,7 @@ def _setThermostatProgsDict(res, thermostat, climastatus, r):
if d in r.keys() and type(r[d]).__name__=='dict':
sql="UPDATE thermostats_progs SET "
doit=False
for h in range(1, 25):
for h in range(0, 24):
hour='h'+str(h).zfill(2)
if hour in r[d].keys() and genutils.is_number(r[d][hour]):
if float(r[d][hour]) >= float(res.minslide) and float(r[d][hour]) <= float(res.maxslide):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment