Skip to content

Commit 8d9a110

Browse files
Replace table contents
1 parent 035cf73 commit 8d9a110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detector/detector/detector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ def process_fresh_data(
422422
assert len(status)
423423

424424
log.debug("Updating blocking_status table")
425-
# click.execute("TRUNCATE TABLE blocking_status SYNC")
426425

427426
wanted_cols = [
428427
"test_name",
@@ -442,6 +441,7 @@ def process_fresh_data(
442441
status.old_status.fillna("UNKNOWN", inplace=True)
443442
status.change.fillna(0, inplace=True)
444443
tmp_s = status.reset_index()[wanted_cols].convert_dtypes()
444+
click.execute("TRUNCATE TABLE blocking_status SYNC")
445445
click.insert_dataframe("INSERT INTO blocking_status VALUES", tmp_s)
446446

447447
if events is not None and len(events):

0 commit comments

Comments
 (0)