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": (