Skip to content
Snippets Groups Projects
Verified Commit f0135976 authored by Owen Graham's avatar Owen Graham
Browse files

Change "/data.cgi" to "/data"

parent 3299bcd9
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,6 @@ def render_plotter(embedded): ...@@ -34,6 +34,6 @@ def render_plotter(embedded):
return render_template('plotter.html') return render_template('plotter.html')
@app.route('/data.cgi') @app.route('/data')
def data_cgi(): def data_json():
return res_queried_data() return res_queried_data()
...@@ -162,7 +162,7 @@ async function getData(name, year) { ...@@ -162,7 +162,7 @@ async function getData(name, year) {
if (data === undefined) { if (data === undefined) {
try { try {
data = await fetchData( data = await fetchData(
`${SCRIPT_ROOT}/data.cgi?station=${name}&year=${year}`); `${SCRIPT_ROOT}/data?station=${name}&year=${year}`);
} catch (err) { } catch (err) {
console.error(err); console.error(err);
alert(`Error fetching data for ${name}, ${year}`); alert(`Error fetching data for ${name}, ${year}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment