Skip to content

Commit adc44bb

Browse files
authored
Fix upload SR query (#1102)
1 parent 039133e commit adc44bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • app/airflow/dags/libs/SR_processing

app/airflow/dags/libs/SR_processing/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ def process_and_create_scan_report_entries(**kwargs) -> None:
125125
try:
126126
# Prepare and execute each insert with RETURNING id to build table name and id pairs
127127
insert_sql = """
128-
INSERT INTO mapping_scanreporttable (scan_report_id, name, created_at, updated_at)
129-
VALUES (%(scan_report_id)s, %(table_name)s, NOW(), NOW())
128+
INSERT INTO mapping_scanreporttable (scan_report_id, name, created_at, updated_at, trigger_reuse)
129+
VALUES (%(scan_report_id)s, %(table_name)s, NOW(), NOW(), TRUE)
130130
RETURNING id
131131
"""
132132

0 commit comments

Comments
 (0)