From d1bdecb12996cdf352d8660d1348aa7320f909e2 Mon Sep 17 00:00:00 2001 From: Natalie Schultz <90212258+nataliejschultz@users.noreply.github.com> Date: Thu, 28 Sep 2023 17:00:10 -0600 Subject: [PATCH] Fixing print; removing db port Seeing how it runs when I remove the database port. --- emission/integrationTests/docker-compose.yml | 2 -- emission/net/ext_service/geocoder/nominatim.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/emission/integrationTests/docker-compose.yml b/emission/integrationTests/docker-compose.yml index ede0a114d..6ef03a474 100644 --- a/emission/integrationTests/docker-compose.yml +++ b/emission/integrationTests/docker-compose.yml @@ -23,8 +23,6 @@ services: db: image: mongo:4.4.0 - ports: - - "1234:1234" deploy: replicas: 1 restart_policy: diff --git a/emission/net/ext_service/geocoder/nominatim.py b/emission/net/ext_service/geocoder/nominatim.py index 2c6714cd6..3898b9543 100644 --- a/emission/net/ext_service/geocoder/nominatim.py +++ b/emission/net/ext_service/geocoder/nominatim.py @@ -16,7 +16,7 @@ OPENSTREETMAP_QUERY_URL_env = os.environ.get("OPENSTREETMAP_QUERY_URL", "") logging.info(f"OPENSTREETMAP_QUERY_URL_env: {OPENSTREETMAP_QUERY_URL_env}") OPENSTREETMAP_QUERY_URL = OPENSTREETMAP_QUERY_URL_env if OPENSTREETMAP_QUERY_URL_env != "" else "http://nominatim.openstreetmap.org" - print("Open Street Map URL not configured, defaulting to nominatim:") if OPENSTREETMAP_QUERY_URL == "http://nominatim.openstreetmap.org" elif print "Open Street Map URL configured!" + print("Open Street Map URL not configured, defaulting to nominatim:") if OPENSTREETMAP_QUERY_URL == "http://nominatim.openstreetmap.org" else print("Open Street Map URL configured!") except: print("URL not configured, place decoding must happen on the client")