Skip to content

Commit

Permalink
Fixing print; removing db port
Browse files Browse the repository at this point in the history
Seeing how it runs when I remove the database port.
  • Loading branch information
nataliejschultz committed Sep 28, 2023
1 parent 4d46b20 commit d1bdecb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions emission/integrationTests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ services:

db:
image: mongo:4.4.0
ports:
- "1234:1234"
deploy:
replicas: 1
restart_policy:
Expand Down
2 changes: 1 addition & 1 deletion emission/net/ext_service/geocoder/nominatim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit d1bdecb

Please sign in to comment.