Skip to content

Commit

Permalink
Replace table contents
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoCeratto committed Jun 21, 2023
1 parent 035cf73 commit 8d9a110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detector/detector/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ def process_fresh_data(
assert len(status)

log.debug("Updating blocking_status table")
# click.execute("TRUNCATE TABLE blocking_status SYNC")

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

if events is not None and len(events):
Expand Down

0 comments on commit 8d9a110

Please sign in to comment.