Extract name by splitting on the first space

main
Bob Mottram 2021-10-20 09:51:19 +01:00
parent 5f6c4fac8d
commit f3776c171c
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ def htmlWatchPointsGraph(baseDir: str, fitness: {}, fitnessId: str,
ctr = 0
for watchPoint in watchPointsList:
name = watchPoint.split(' ')[1]
name = watchPoint.split(' ', 1)[1]
averageTime = float(watchPoint.split(' ')[0])
heightPercent = int(averageTime * 100 / maxAverageTime)
timeMS = int(averageTime)