X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fdash%2Fapp%2Fpal%2Fstats%2Fstats.py;fp=resources%2Ftools%2Fdash%2Fapp%2Fpal%2Fstats%2Fstats.py;h=d733e0ca81f5fe63b72be621d7beeeec767ea170;hp=78bb6e6f88ee522fcc08332c4a233ae802d3f9e0;hb=3c421a0c9690b782f299946903a928632cb36f52;hpb=cb61767fb2133890a786fc8f580109e9f8f3c5c5 diff --git a/resources/tools/dash/app/pal/stats/stats.py b/resources/tools/dash/app/pal/stats/stats.py index 78bb6e6f88..d733e0ca81 100644 --- a/resources/tools/dash/app/pal/stats/stats.py +++ b/resources/tools/dash/app/pal/stats/stats.py @@ -19,7 +19,7 @@ import dash_bootstrap_components as dbc from .layout import Layout -def init_stats(server): +def init_stats(server, time_period=None): """Create a Plotly Dash dashboard. :param server: Flask server. @@ -40,7 +40,8 @@ def init_stats(server): html_layout_file="pal/templates/stats_layout.jinja2", spec_file="pal/stats/spec_job_selection.yaml", graph_layout_file="pal/stats/layout.yaml", - data_spec_file="pal/data/data.yaml" + data_spec_file="pal/data/data.yaml", + time_period=time_period ) dash_app.index_string = layout.html_layout dash_app.layout = layout.add_content()