Commit 4fb37378 authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

series_names: filter only primary series

parent 9340ea6eb4c5
......@@ -22,7 +22,11 @@ bp = Blueprint('tsview', __name__,
def series_names(tshclass, engine):
return list(tshclass().list_series(engine).keys())
return sorted(
for name, kind in tshclass().list_series(engine).items()
if kind == 'primary'
def homeurl():
......@@ -41,7 +45,7 @@ def tsview(engine, tshclass=timeseries, series_names=series_names):
class logargs(_argsdict):
defaults = {
'series': None,
'seriesvocab': lambda: series_names(tshclass, engine),
'seriesvocab': lambda: series_names(tshclass, engine)
types = {
'series': str,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment