Skip to content

Commit 0f83532

Browse files
committed
actually update with enrichment
Signed-off-by: John Seekins <[email protected]>
1 parent 1030a44 commit 0f83532

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

enricher.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,15 @@ def enrich_facility_data(self, facilities_data: dict) -> dict:
8989
if full_address in self.adp_sheet_data:
9090
row = self.adp_sheet_data[full_address]
9191
logger.debug("Found additional data in the ADP sheet for %s", facility_name)
92-
facility = self._update_from_sheet(facility, row)
92+
enriched_facility = self._update_from_sheet(facility, row)
9393
else:
9494
logger.debug("Just making sure no other facilities match...")
9595
for sheet_row in self.adp_sheet_data.values():
9696
if facility_name.upper() == sheet_row["Name"].upper():
9797
logger.debug("Matching facility for %s", facility_name)
98-
facility = self._update_from_sheet(facility, sheet_row)
98+
enriched_facility = self._update_from_sheet(facility, sheet_row)
9999
break
100+
100101
# Wikipedia search # todo refactor to method
101102
try:
102103
wiki_result = self._search_wikipedia(facility_name)

0 commit comments

Comments
 (0)