Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pony
tsview
Commits
df85cd778b44
Commit
c2d14536
authored
Aug 06, 2019
by
André Espaze
Browse files
Cleaning server side
parent
1f02d6b73022
Changes
1
Hide whitespace changes
Inline
Side-by-side
tsview/blueprint.py
View file @
df85cd77
...
...
@@ -44,28 +44,10 @@ def homeurl():
def
tsview
(
engine
,
tshclass
=
timeseries
,
serie_names
=
serie_names
):
class
viewargs
(
_argsdict
):
defaults
=
{
'outputtype'
:
'plot'
,
'outputtypevocab'
:
(
'plot'
,
'table'
),
'series'
:
(),
'seriesvocab'
:
lambda
:
serie_names
(
engine
)
}
types
=
{
'series'
:
list
}
@
bp
.
route
(
'/tsview'
)
def
home
():
args
=
viewargs
(
request
.
args
)
return
render_template
(
'tsview.html'
,
homeurl
=
homeurl
(),
**
args
)
@
bp
.
route
(
'/tsplot'
)
def
tsplot
():
args
=
viewargs
(
request
.
args
)
return
plot
(
args
,
engine
,
tshclass
)
homeurl
=
homeurl
())
class
logargs
(
_argsdict
):
defaults
=
{
...
...
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