Skip to content

Commit dbb3416

Browse files
committed
fix bad matching
1 parent f0dd3cd commit dbb3416

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/pipeline/match_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ def start(connection, added_or_updated_rows, manual_matches_df):
6262
# Exact matches based on specified columns
6363
row_matches = pdp_contacts[
6464
(
65-
((pdp_contacts["first_name_normalized"] == row["first_name_normalized"]) &
65+
(((pdp_contacts["first_name_normalized"] == row["first_name_normalized"]) &
6666
(pdp_contacts["last_name_normalized"] == row["last_name_normalized"]))
6767
|
6868
((pdp_contacts["first_name_normalized"] == row["last_name_normalized"]) &
69-
(pdp_contacts["last_name_normalized"] == row["first_name_normalized"]))
69+
(pdp_contacts["last_name_normalized"] == row["first_name_normalized"])))
7070
&
7171
((pdp_contacts["email_normalized"] == row["email_normalized"]) | (pdp_contacts["mobile"] == row["mobile"]))
7272
)

0 commit comments

Comments
 (0)