fix: improve error message for bad timeframe

This commit is contained in:
2024-03-05 21:05:56 +01:00
parent 7dcceaf7d4
commit e2a95c39db

View File

@@ -77,10 +77,12 @@ def generate(master_dir, from_time, to_time, cache_file, dtype):
data.append((date, float(temp), float(hum))) data.append((date, float(temp), float(hum)))
# set start and end # # set start and end #
print(line, date)
if not start and date: if not start and date:
start = date start = date
elif date: elif date:
end = date end = date
print(end)
# save values # # save values #
timeframes.append((start, end, data)) timeframes.append((start, end, data))