Skip to content

Commit 4d68bf8

Browse files
committed
better key naming
Signed-off-by: John Seekins <[email protected]>
1 parent 9ac46f7 commit 4d68bf8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

enrichers/openstreetmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def search(facility_name: str, address: dict) -> dict:
1515
search_name = clean_facility_name(facility_name)
1616
search_url = "https://nominatim.openstreetmap.org/search"
1717
resp_info = copy.deepcopy(enrich_resp_schema)
18-
resp_info["query_type"] = "openstreetmap"
18+
resp_info["enrichment_type"] = "openstreetmap"
1919
data = []
2020
if not address:
2121
logger.debug("No address for %s, simply searching for name", facility_name)

enrichers/wikidata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def search(facility_name: str) -> dict:
2525
"limit": 3,
2626
}
2727
resp_info = copy.deepcopy(enrich_resp_schema)
28-
resp_info["query_type"] = "wikidata"
28+
resp_info["enrichment_type"] = "wikidata"
2929
data = {}
3030
try:
3131
response = session.get(search_url, params=params, timeout=10) # type: ignore [arg-type]

enrichers/wikipedia.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def search(facility_name: str) -> dict:
3030
"processing",
3131
]
3232
resp_info = copy.deepcopy(enrich_resp_schema)
33-
resp_info["query_type"] = "wikipedia"
33+
resp_info["enrichment_type"] = "wikipedia"
3434
# Clean facility name for search
3535
search_name: str = clean_facility_name(facility_name)
3636
logger.debug("Searching Wikipedia for %s", facility_name)

schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"url": "",
122122
"details": {},
123123
"method": "none",
124-
"query_type": "",
124+
"enrichment_type": "",
125125
}
126126

127127
enrich_allowed_types = [

0 commit comments

Comments
 (0)