From 0f2575d1109fd3290db80615a5184577989d73ac Mon Sep 17 00:00:00 2001 From: tkalir Date: Mon, 7 Oct 2024 11:50:15 +0300 Subject: [PATCH] Update location_extraction.py --- anyway/parsers/location_extraction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anyway/parsers/location_extraction.py b/anyway/parsers/location_extraction.py index 49574f00..a43bdf62 100644 --- a/anyway/parsers/location_extraction.py +++ b/anyway/parsers/location_extraction.py @@ -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 )