Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Commit

Permalink
use correct quotes, remove OSM fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
rosskarchner committed Jun 19, 2017
1 parent 27d3deb commit 6431f5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions hud_api_replace/geocode.py
Expand Up @@ -41,12 +41,9 @@ def geocode_get_data(address, zip_only=False):
mb_result = PermanentMapbox(address,
types='postcode',
country='us')
if mb_result.latlng:
result = mb_result
else:
result = geocoder.osm(address)
result = mb_result
else:
result = PermanentMapbox(address, country="us")
result = PermanentMapbox(address, country='us')
cached, created = CachedGeodata.objects.get_or_create(key=address)
cached.lat = result.lat
cached.lon = result.lng
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
@@ -1,6 +1,6 @@
[tox]
skipsdist=True
envlist=py{27,35}-dj{18,110}
envlist=py{27,35}-dj{18,111}

[testenv]
install_command=pip install -e ".[testing]" -U {opts} {packages}
Expand Down

0 comments on commit 6431f5a

Please sign in to comment.