mirror of
https://github.com/FAUSheppy/ths-datenlogger
synced 2025-12-06 04:11:34 +01:00
fix: improve error message for bad timeframe
This commit is contained in:
@@ -77,10 +77,12 @@ def generate(master_dir, from_time, to_time, cache_file, dtype):
|
||||
data.append((date, float(temp), float(hum)))
|
||||
|
||||
# set start and end #
|
||||
print(line, date)
|
||||
if not start and date:
|
||||
start = date
|
||||
elif date:
|
||||
end = date
|
||||
print(end)
|
||||
|
||||
# save values #
|
||||
timeframes.append((start, end, data))
|
||||
|
||||
Reference in New Issue
Block a user