Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
visualizer-echarts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Owen Graham
visualizer-echarts
Commits
f0135976
Verified
Commit
f0135976
authored
1 year ago
by
Owen Graham
Browse files
Options
Downloads
Patches
Plain Diff
Change "/data.cgi" to "/data"
parent
3299bcd9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
visualizer/__init__.py
+2
-2
2 additions, 2 deletions
visualizer/__init__.py
visualizer/static/visualizer.js
+1
-1
1 addition, 1 deletion
visualizer/static/visualizer.js
with
3 additions
and
3 deletions
visualizer/__init__.py
+
2
−
2
View file @
f0135976
...
@@ -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
()
This diff is collapsed.
Click to expand it.
visualizer/static/visualizer.js
+
1
−
1
View file @
f0135976
...
@@ -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
}
`
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment