Private
Public Access
1
0

half way through doing course_adherence

This commit is contained in:
Sander Roosendaal
2018-02-21 17:23:53 +01:00
parent 95a2fb86ae
commit 0c00fb164f
5 changed files with 102 additions and 9 deletions

View File

@@ -8463,7 +8463,11 @@ def course_edit_view(request,id=0):
if form.is_valid():
name = form.cleaned_data['name']
notes = form.cleaned_data['notes']
if isinstance(name,unicode):
name = name.encode('utf8')
elif isinstance(name, str):
name = name.decode('utf8')
course.name = name
course.notes = notes
course.save()
@@ -12645,7 +12649,7 @@ def plannedsession_view(request,id=0,rowerid=0,
# ranking for test
ranking = []
if ps.sessiontype == 'test':
if ps.sessiontype in ['test','coursetest']:
if ps.sessionmode == 'distance':
rankws = Workout.objects.filter(
plannedsession=ps).order_by("duration")