From e44f911586bc01b85021951d80501a4887c919c1 Mon Sep 17 00:00:00 2001 From: Jan Baykara Date: Sun, 5 Jan 2025 13:33:36 +0000 Subject: [PATCH] specify category of area types --- hub/data_imports/geocoding_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hub/data_imports/geocoding_config.py b/hub/data_imports/geocoding_config.py index fb640c1d0..c2189a4ce 100644 --- a/hub/data_imports/geocoding_config.py +++ b/hub/data_imports/geocoding_config.py @@ -157,6 +157,7 @@ async def import_area_data( parent_area = area literal_lih_area_type__code = item.get("lih_area_type__code", None) literal_mapit_type = item.get("mapit_type", None) + area_set = "LIH" if literal_lih_area_type__code is not None else "MapIt" area_types = literal_lih_area_type__code or literal_mapit_type literal_area_field = item.get("field", None) raw_area_value = str(source.get_record_field(record, literal_area_field)) @@ -274,7 +275,7 @@ async def import_area_data( step = { "type": "sql_area_matching", - "area_types": parsed_area_types, + f"{area_set}_area_types": parsed_area_types, "result": "failed" if area is None else "success", "search_term": raw_area_value, "data": (