Skip to content

Commit

Permalink
minor refacoring in extract_geo_features
Browse files Browse the repository at this point in the history
  • Loading branch information
tkalir committed Sep 17, 2024
1 parent 429c395 commit c5aa1ff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions anyway/parsers/location_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +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.ResolutionCategories.STREET,
BE_CONST.ResolutionCategories.SUBURBAN_ROAD,
]:
if newsflash.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 c5aa1ff

Please sign in to comment.