From f3776c171ccb371d79309d05d5d156d4c2540e32 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 20 Oct 2021 09:51:19 +0100 Subject: [PATCH] Extract name by splitting on the first space --- fitnessFunctions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fitnessFunctions.py b/fitnessFunctions.py index eeb607ec7..f0fe8bcf1 100644 --- a/fitnessFunctions.py +++ b/fitnessFunctions.py @@ -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)