Private
Public Access
1
0
This commit is contained in:
2024-04-13 09:39:16 +02:00
parent ef8054b5a6
commit 0f62dda8d8
3 changed files with 7 additions and 1 deletions

View File

@@ -199,6 +199,8 @@ def interactive_hr_piechart(df, rower, title, totalseconds=0):
df = df.with_columns((pl.col("deltat")*pl.col("hr")).alias("deltat"))
sumtimehr = df['deltat'].sum()
if sumtimehr == 0:
return "", "No HR data"
if totalseconds == 0:
totalseconds = sumtimehr