Skip to content

Commit

Permalink
Merge pull request #126 from imp-sh/mysql_example_key_error_fix
Browse files Browse the repository at this point in the history
Bug Fix: KeyError accessing SSDictCursor results
  • Loading branch information
fgregg authored Jan 19, 2022
2 parents e09cac9 + 77d8882 commit a767fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql_example/mysql_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def cluster_ids(clustered_dupes):
with read_con.cursor() as cur:
cur.execute("SELECT DISTINCT {field} FROM processed_donors "
"WHERE {field} IS NOT NULL".format(field=field))
field_data = (row[0] for row in cur)
field_data = (row[field] for row in cur)
deduper.fingerprinter.index(field_data, field)

# Now we are ready to write our blocking map table by creating a
Expand Down

0 comments on commit a767fa5

Please sign in to comment.