More tidying up from Tims rebase screw up
This commit is contained in:
parent
a08f93ff5b
commit
46e6d883dc
9
app.py
9
app.py
|
@ -30,15 +30,6 @@ def showMap(threewords):
|
||||||
return template('index',
|
return template('index',
|
||||||
err="Could not find location {}".format(threewords))
|
err="Could not find location {}".format(threewords))
|
||||||
|
|
||||||
@get('/latlng/<lat:float>,<lng:float>')
|
|
||||||
def showMapFromLatLng(lat, lng):
|
|
||||||
try:
|
|
||||||
threewords = these.three_words((lat, lng))
|
|
||||||
return template('map', lat=lat, lng=lng, threewords=threewords)
|
|
||||||
except:
|
|
||||||
return template('index',
|
|
||||||
err="Could not find location {}".format(threewords))
|
|
||||||
|
|
||||||
|
|
||||||
@get('/latlng/<lat:float>,<lng:float>')
|
@get('/latlng/<lat:float>,<lng:float>')
|
||||||
def showMapFromLatLng(lat, lng):
|
def showMapFromLatLng(lat, lng):
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places"></script>
|
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places"></script>
|
||||||
<script src="/static/js/app.js"></script>
|
<script src="/static/js/app.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body onload="initialize()">
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
% if err:
|
% if err:
|
||||||
<aside class="alert alert-danger" role="alert">Error: {{ err }}</aside>
|
<aside class="alert alert-danger" role="alert">Error: {{ err }}</aside>
|
||||||
|
|
Loading…
Reference in New Issue