Skip to content

Commit 21f6203

Browse files
authored
Merge pull request #310 from CodeForPhilly/308-false-matches
fix bad matching
2 parents d714449 + dbb3416 commit 21f6203

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)