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