From 284736865319e61ae8c08094faaae65be0e2796f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 16 Oct 2024 14:13:43 +0100 Subject: [PATCH] Remove debug --- maps.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/maps.py b/maps.py index 823731a40..6e56ab52e 100644 --- a/maps.py +++ b/maps.py @@ -172,7 +172,6 @@ def _geocoords_from_osmorg_link(url: str) -> (int, float, float): def _geocoords_from_osmorg_go_link(url: str, session) -> (int, float, float): """Returns geocoordinates from an OSM go map link """ - print('Debug: _geocoords_from_osmorg_go_link ' + url) osm_domain = 'osm.org' if osm_domain not in url: return None, None, None @@ -190,18 +189,12 @@ def _geocoords_from_osmorg_go_link(url: str, session) -> (int, float, float): if not resolved_url: return None, None, None - print('Debug: _geocoords_from_osmorg_go_link ' + resolved_url) - if 'osm.org' in resolved_url: (zoom, latitude, longitude) = \ _geocoords_from_osmorg_link(resolved_url) - print('Debug: _geocoords_from_osmorg_go_link2 ' + str(zoom) + ' ' + - str(latitude) + ' ' + str(longitude)) else: (zoom, latitude, longitude) = \ _geocoords_from_osm_link(resolved_url, 'openstreetmap.org') - print('Debug: _geocoords_from_osmorg_go_link3 ' + str(zoom) + ' ' + - str(latitude) + ' ' + str(longitude)) return zoom, latitude, longitude @@ -435,7 +428,6 @@ def geocoords_from_map_link(url: str, osm_domain: str, _geocoords_from_osm_link(url, osm_domain) return zoom, latitude, longitude if 'osm.org' in url and 'mlat=' not in url and '/go/' in url: - print('Debug: _geocoords_from_osmorg_go_link 0 ' + url) zoom, latitude, longitude = \ _geocoords_from_osmorg_go_link(url, session) return zoom, latitude, longitude