changes
This commit is contained in:
@@ -119,7 +119,7 @@ siteurl = SITE_URL
|
||||
# testing task
|
||||
|
||||
from rowers.emails import send_template_email
|
||||
from rowers.courseutils import coursetime_paths, coursetime_first, time_in_path
|
||||
from rowers.courseutils import coursetime_paths, coursetime_first, time_in_path,InvalidTrajectoryError
|
||||
|
||||
@app.task
|
||||
def add(x, y):
|
||||
@@ -432,7 +432,11 @@ def handle_check_race_course(self,
|
||||
paths.append(path)
|
||||
|
||||
# check how many times went through start polygon
|
||||
entrytimes,entrydistances = time_in_path(rowdata,paths[0],maxmin='max',getall=True)
|
||||
try:
|
||||
entrytimes,entrydistances = time_in_path(rowdata,paths[0],maxmin='max',getall=True)
|
||||
except InvalidTrajectoryError:
|
||||
coursecomplete = False
|
||||
return 0
|
||||
|
||||
cseconds = []
|
||||
cmeters = []
|
||||
|
||||
Reference in New Issue
Block a user