Skip to content

Commit

Permalink
Merge pull request #1161 from MTES-MCT/score-owner-ban
Browse files Browse the repository at this point in the history
Fix: Populate BAN addresses regardless of 'score' value.
  • Loading branch information
loicguillois authored Feb 24, 2025
2 parents ff478d0 + 4edb188 commit 4b1730b
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def process_owners_chunks(context: AssetExecutionContext):
FROM owners o
LEFT JOIN ban_addresses ba ON o.id = ba.ref_id
WHERE (ba.ref_id IS NULL) -- Propriétaires sans adresse
OR (ba.ref_id IS NOT NULL AND ba.address_kind = 'Owner' AND ba.score < 1) -- Propriétaires avec adresse non validée
{"LIMIT " + str(max_files * chunk_size) if not disable_max_files else ""}
"""
context.log.info(f"Limit applied: {'LIMIT ' + str(max_files * chunk_size) if not disable_max_files else 'No limit'}")
Expand Down

0 comments on commit 4b1730b

Please sign in to comment.