Fix for empty tsdb query result case
parent
8c6a18fdb7
commit
396fb742bd
|
@ -690,14 +690,13 @@ async def tsdb_backfill(
|
|||
timeframe=timeframe,
|
||||
)
|
||||
|
||||
# empty query
|
||||
if not len(tsdb_history):
|
||||
break
|
||||
|
||||
next_start = tsdb_history['Epoch'][0]
|
||||
if (
|
||||
not len(tsdb_history) # empty query
|
||||
|
||||
if next_start >= tsdb_last_frame_start:
|
||||
# no earlier data detected
|
||||
or next_start >= tsdb_last_frame_start
|
||||
|
||||
):
|
||||
break
|
||||
else:
|
||||
tsdb_last_frame_start = next_start
|
||||
|
|
Loading…
Reference in New Issue