Private
Public Access
1
0

Merge branch 'release/v20.3.7'

This commit is contained in:
2023-12-11 19:34:16 +01:00
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -5786,7 +5786,7 @@ def interactive_flex_chart2(id, r, promember=0,
try: try:
_ = rowdata[yparam1] _ = rowdata[yparam1]
except KeyError: # pragma: no cover except (TypeError, KeyError): # pragma: no cover
yparam1 = 'None' yparam1 = 'None'
# test if we have drive energy # test if we have drive energy
Binary file not shown.
+9 -4
View File
@@ -1656,9 +1656,12 @@ def course_compare_view(request, id=0):
except Workout.DoesNotExist: # pragma: no cover except Workout.DoesNotExist: # pragma: no cover
pass pass
labeldict = { try:
int(w.id): w.__str__() for w in workouts labeldict = {
} int(w.id): w.__str__() for w in workouts
}
except:
labeldict = {}
res = interactive_multiple_compare_chart(workoutids, xparam, yparam, res = interactive_multiple_compare_chart(workoutids, xparam, yparam,
promember=promember, promember=promember,
@@ -1758,8 +1761,10 @@ def virtualevent_compare_view(request, id=0):
return HttpResponseRedirect(url) return HttpResponseRedirect(url)
xparam = 'time'
yparam = 'pace'
if request.method == 'GET': if request.method == 'GET':
xparam = 'time'
if race.sessionmode == 'distance': if race.sessionmode == 'distance':
xparam = 'cumdist' xparam = 'cumdist'