Private
Public Access
1
0

first result working

This commit is contained in:
Sander Roosendaal
2020-05-27 14:56:09 +02:00
parent 8bfbb2bdf8
commit 2ba9133a1d
9 changed files with 112 additions and 45 deletions

View File

@@ -1514,6 +1514,7 @@ def add_workout_race(ws,race,r,splitsecond=0,recordid=0):
return 0,comments,errors,0
if ws[0].workouttype != record.boatclass:
print(ws[0].workouttype,record.boatclass)
errors.append('Your workout boat class is different than on your race registration')
return 0,comments,errors,0
@@ -1551,7 +1552,8 @@ def add_workout_race(ws,race,r,splitsecond=0,recordid=0):
comments.append('Workouts submitted to virtual events have to be public. We have changed the workout to a public workout.')
job = myqueue(queue,handle_check_race_course,ws[0].csvfilename,
ws[0].id,race.course.id,record.id,splitsecond=splitsecond)
ws[0].id,race.course.id,record.id,splitsecond=splitsecond,
referencespeed=record.referencespeed)