Browse Source

Avoid redirect

master
clerie 6 months ago
parent
commit
3193c6d507
  1. 2
      wetter/templates/index.html
  2. 2
      wetter/templates/station.html

2
wetter/templates/index.html

@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
zoomOffset: -1
}).addTo(mymap);
$.getJSON("/api/station", (stations) => {
$.getJSON("/api/station/", (stations) => {
if(stations.length == 1) {
mymap.setView([stations[0]["lat"], stations[0]["lon"]], 6);
}

2
wetter/templates/station.html

@ -86,7 +86,7 @@ @@ -86,7 +86,7 @@
zoomOffset: -1
}).addTo(mymap);
$.getJSON("/api/station?s={{ station.dwd_id }}", (stations) => {
$.getJSON("/api/station/?s={{ station.dwd_id }}", (stations) => {
if(stations.length == 1) {
mymap.setView([stations[0]["lat"], stations[0]["lon"]], 6);
}

Loading…
Cancel
Save