Skip to content

Commit

Permalink
Merge pull request #1157 from MTES-MCT/rework-dagster-ban-addresses
Browse files Browse the repository at this point in the history
Rework dagster ban addresses
  • Loading branch information
loicguillois authored Feb 20, 2025
2 parents 68a68eb + 92ce9af commit 3fe00a8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ def process_housings_with_api(context: AssetExecutionContext, housings_without_a
last_updated_at = EXCLUDED.last_updated_at;
"""
)

cursor.execute("""
DELETE FROM temp_ban_addresses;
""")

total_inserted += len(valid_df)
batch_number += 1
conn.commit()
Expand Down

0 comments on commit 3fe00a8

Please sign in to comment.