Skip to content

Commit

Permalink
Merge pull request #2710 from data-for-change/fix-location-extraction
Browse files Browse the repository at this point in the history
Update location_extraction.py
  • Loading branch information
atalyaalon authored Oct 7, 2024
2 parents 4f138c6 + 0f2575d commit ac4ae8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anyway/parsers/location_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def extract_geo_features(db, newsflash: NewsFlash, use_existing_coordinates_only
if not use_existing_coordinates_only:
update_coordinates_and_resolution_using_location_text(newsflash)

if newsflash.resolution in BE_CONST.SUPPORTED_RESOLUTIONS:
if newsflash.resolution in [resolution.value for resolution in BE_CONST.SUPPORTED_RESOLUTIONS]:
location_from_db = get_db_matching_location(
db, newsflash.lat, newsflash.lon, newsflash.resolution, newsflash.road1
)
Expand Down

0 comments on commit ac4ae8f

Please sign in to comment.