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