X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fdash%2Fapp%2Fpal%2Fstats%2Flayout.py;h=1d271cb265958dbce68379ed0b9d2ea895db24c5;hb=refs%2Fchanges%2F94%2F36794%2F4;hp=7bd2dee6200a373202d136ff89b8ff6a330406f7;hpb=2f9e211bd097fdd2f83df540aa494d924df01c7d;p=csit.git diff --git a/resources/tools/dash/app/pal/stats/layout.py b/resources/tools/dash/app/pal/stats/layout.py index 7bd2dee620..1d271cb265 100644 --- a/resources/tools/dash/app/pal/stats/layout.py +++ b/resources/tools/dash/app/pal/stats/layout.py @@ -237,7 +237,7 @@ class Layout: If no HTML layout is provided, an error message is displayed instead. - :returns: The HTML div with teh whole page. + :returns: The HTML div with the whole page. :rtype: html.Div """ @@ -800,7 +800,8 @@ class Layout: data = select_data(self.data, job, get_date(start), get_date(end)) data = data.drop(columns=["job", ]) - return dcc.send_data_frame(data.T.to_csv, f"{job}-stats.csv") + return dcc.send_data_frame( + data.T.to_csv, f"{job}-{C.STATS_DOWNLOAD_FILE_NAME}") @app.callback( Output("row-metadata", "children"),