Skip to content

Commit

Permalink
Adjust conditional + Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidysymons committed Sep 26, 2023
1 parent 18deb5f commit 5e2ddde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion microsetta_private_api/repo/melissa_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def check_duplicate(self, address_1, address_2, postal, country):
# psycopg won't automatically handle = NULL vs. IS NULL
sql = """SELECT * FROM campaign.melissa_address_queries
WHERE (source_address_1 = %s
AND source_{0}
AND source_{0}
AND source_postal = %s
AND source_country = %s
AND result_processed = true)
Expand Down
2 changes: 1 addition & 1 deletion microsetta_private_api/util/melissa.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def verify_address(address_1, address_2=None, address_3=None, city=None,
r_good = True
break

if not r_good and r_good_conditional and not r_errors_present:
if r_good_conditional and not r_errors_present:
r_good = True

r_address_1 = record_obj["AddressLine1"]
Expand Down

0 comments on commit 5e2ddde

Please sign in to comment.