fixing errors
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user