Skip to content

Commit

Permalink
Update location_extraction.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tkalir authored Oct 7, 2024
1 parent 4f138c6 commit 0f2575d
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 0f2575d

Please sign in to comment.