Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix(dash): improve date formatting in hover
[csit.git]
/
resources
/
tools
/
dash
/
app
/
pal
/
stats
/
graphs.py
diff --git
a/resources/tools/dash/app/pal/stats/graphs.py
b/resources/tools/dash/app/pal/stats/graphs.py
index
db69374
..
c1f58f2
100644
(file)
--- a/
resources/tools/dash/app/pal/stats/graphs.py
+++ b/
resources/tools/dash/app/pal/stats/graphs.py
@@
-47,7
+47,7
@@
def graph_statistics(df: pd.DataFrame, job:str, layout: dict,
for _, row in data.iterrows():
d_type = "trex" if row["dut_type"] == "none" else row["dut_type"]
hover_itm = (
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')}<br>"
+ f"date: {row['start_time'].strftime('%
Y-%m-%d
%H:%M:%S')}<br>"
f"duration: "
f"{(int(row['duration']) // 3600):02d}:"
f"{((int(row['duration']) % 3600) // 60):02d}<br>"
f"duration: "
f"{(int(row['duration']) // 3600):02d}:"
f"{((int(row['duration']) % 3600) // 60):02d}<br>"