Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
janbaykara committed Jan 5, 2025
1 parent 0cb8dbc commit 45724cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions hub/data_imports/geocoding_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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": (
Expand Down
2 changes: 1 addition & 1 deletion hub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 45724cf

Please sign in to comment.