Commit 67db4e6aa0247b47d783af0a0ebc6bd4893f7bed

Authored by Antoine Goutenoir
1 parent 90edbbb4
Exists in master

fix: backward-compatibility

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
flaskr/controllers/main_controller.py
... ... @@ -775,8 +775,8 @@ def consult_estimation(public_id, extension):
775 775 city['city'].encode(OUT_ENCODING),
776 776 city['country'].encode(OUT_ENCODING),
777 777 city['address'].encode(OUT_ENCODING),
778   - city['latitude'],
779   - city['longitude'],
  778 + city.get('latitude', 0.0),
  779 + city.get('longitude', 0.0),
780 780 round(city['footprint'], 3),
781 781 round(city['distance'], 3),
782 782 city['plane_trips'],
... ...