Don't offset the start index by a step

l1_precision_fix
Tyler Goodlet 2022-05-07 15:24:26 -04:00
parent c9a621fc2a
commit 1676bceee1
1 changed files with 2 additions and 3 deletions

View File

@ -308,10 +308,11 @@ async def start_backfill(
frames = {}
def iter_dts(start: datetime):
while True:
hist_period = pendulum.period(
start.subtract(seconds=step_size_s),
start,
last_tsdb_dt,
)
dtrange = hist_period.range('seconds', frame_size_s)
@ -323,8 +324,6 @@ async def start_backfill(
# if caller sends a new start date, reset to that
if start is not None:
log.warning(f'Resetting date range: {start}')
# import pdbpp
# pdbpp.set_trace()
break
else:
# from while