diff --git a/hub/data_imports/geocoding_config.py b/hub/data_imports/geocoding_config.py index ec558992..e8a94981 100644 --- a/hub/data_imports/geocoding_config.py +++ b/hub/data_imports/geocoding_config.py @@ -7,7 +7,6 @@ from django.db.models import Q from asgiref.sync import sync_to_async -from benedict import benedict from hub.data_imports.utils import get_update_data from utils import google_maps, mapit_types @@ -159,7 +158,6 @@ async def import_area_data( "lih_area_type__code", None ) literal_mapit_type = item.get("metadata", {}).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)) @@ -277,7 +275,7 @@ async def import_area_data( step = { "type": "sql_area_matching", - f"area_types": parsed_area_types, + "area_types": parsed_area_types, "result": "failed" if area is None else "success", "search_term": raw_area_value, "data": ( diff --git a/hub/models.py b/hub/models.py index 1b298170..fb5d9878 100644 --- a/hub/models.py +++ b/hub/models.py @@ -1104,7 +1104,7 @@ def uses_valid_geocoding_config(self): and self.geocoding_config.get("components", None) is not None and isinstance(self.geocoding_config.get("components", None), list) and len(self.geocoding_config.get("components", [])) > 0 - ) == True + ) is True geography_column_type = TextChoicesField( choices_enum=GeographyTypes,