Skip to content

Commit

Permalink
bugfix: return for cords extractor fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
papko26 committed Dec 2, 2024
1 parent d0bd0e7 commit db7bf34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/gtw.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ def extract_coordinates_with_regex(url, last_resort=False):
latitude, longitude = match.groups()
latitude = latitude.lstrip('+')
longitude = longitude.lstrip('+')
return {"extract_crds: latitude": latitude, "longitude": longitude}
logger.debug(f"extract_crds: {latitude}/{longitude}")
return {"latitude": latitude, "longitude": longitude}
else:
logger.debug("extract_crds: failed to parse cords")
except Exception as e:
Expand Down

0 comments on commit db7bf34

Please sign in to comment.