X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fdash%2Fapp%2Fpal%2Fstats%2Fgraphs.py;h=db6937402ab535dec428a1c422b93eee5f374c9d;hp=d9f49407d94256c6a1302334280eb951ba5cf9e6;hb=88853d7d4e4461198213b9db021fe4e4985c9533;hpb=9feafea756fcdbd067fbc767ba16a8e3ecb6d6b2 diff --git a/resources/tools/dash/app/pal/stats/graphs.py b/resources/tools/dash/app/pal/stats/graphs.py index d9f49407d9..db6937402a 100644 --- a/resources/tools/dash/app/pal/stats/graphs.py +++ b/resources/tools/dash/app/pal/stats/graphs.py @@ -45,6 +45,7 @@ def graph_statistics(df: pd.DataFrame, job:str, layout: dict, hover = list() for _, row in data.iterrows(): + d_type = "trex" if row["dut_type"] == "none" else row["dut_type"] hover_itm = ( f"date: {row['start_time'].strftime('%d-%m-%Y %H:%M:%S')}
" f"duration: " @@ -52,7 +53,7 @@ def graph_statistics(df: pd.DataFrame, job:str, layout: dict, f"{((int(row['duration']) % 3600) // 60):02d}
" f"passed: {row['passed']}
" f"failed: {row['failed']}
" - f"{row['dut_type']}-ref: {row['dut_version']}
" + f"{d_type}-ref: {row['dut_version']}
" f"csit-ref: {row['job']}/{row['build']}
" f"hosts: {', '.join(row['hosts'])}" )