Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
3a57e62e
Commit
3a57e62e
authored
Dec 10, 2015
by
LE GAC Renaud
Browse files
Fix a bug in the graphs/index controller: the format is given by the page extension.
parent
8d1a9ae4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
controllers/graphs.py
controllers/graphs.py
+3
-1
No files found.
controllers/graphs.py
View file @
3a57e62e
...
...
@@ -87,5 +87,7 @@ def index():
do_title
(
ax
,
db
,
selector
)
# delegate the rendering to the view
fmt
=
"svg"
if
selector
.
format
==
"html"
else
selector
.
format
extension
=
request
.
extension
fmt
=
"svg"
if
extension
==
"html"
else
extension
return
dict
(
data
=
savefig
(
ax
.
get_figure
(),
fmt
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment