Private
Public Access
1
0

fixing errors

This commit is contained in:
2023-12-11 19:25:40 +01:00
parent f8dd3fedab
commit a69d6bb199
2 changed files with 9 additions and 4 deletions

View File

@@ -1656,9 +1656,12 @@ def course_compare_view(request, id=0):
except Workout.DoesNotExist: # pragma: no cover
pass
labeldict = {
int(w.id): w.__str__() for w in workouts
}
try:
labeldict = {
int(w.id): w.__str__() for w in workouts
}
except:
labeldict = {}
res = interactive_multiple_compare_chart(workoutids, xparam, yparam,
promember=promember,
@@ -1758,8 +1761,10 @@ def virtualevent_compare_view(request, id=0):
return HttpResponseRedirect(url)
xparam = 'time'
yparam = 'pace'
if request.method == 'GET':
xparam = 'time'
if race.sessionmode == 'distance':
xparam = 'cumdist'