better gps comparisons
This commit is contained in:
@@ -381,8 +381,9 @@ def handle_check_race_course(self,
|
|||||||
except IOError:
|
except IOError:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
row.calc_dist_from_gps()
|
||||||
rowdata = row.df
|
rowdata = row.df
|
||||||
|
rowdata['cum_dist'] = rowdata['gps_dist_calculated']
|
||||||
|
|
||||||
try:
|
try:
|
||||||
s = rowdata[' latitude']
|
s = rowdata[' latitude']
|
||||||
|
|||||||
@@ -5913,13 +5913,34 @@ def workout_summary_edit_view(request,id,message="",successmessage=""
|
|||||||
|
|
||||||
# we are saving the results obtained from the split by power/pace interpreter
|
# we are saving the results obtained from the split by power/pace interpreter
|
||||||
elif request.method == 'POST' and "savepowerpaceform" in request.POST:
|
elif request.method == 'POST' and "savepowerpaceform" in request.POST:
|
||||||
powerorpace = request.POST['powerorpace']
|
try:
|
||||||
value_pace = request.POST['value_pace']
|
powerorpace = request.POST['powerorpace']
|
||||||
value_power = request.POST['value_power']
|
except:
|
||||||
value_work = request.POST['value_work']
|
powerorpace = 'pace'
|
||||||
value_spm = request.POST['value_spm']
|
try:
|
||||||
activeminutesmin = request.POST['activeminutesmin']
|
value_pace = request.POST['value_pace']
|
||||||
activeminutesmax = request.POST['activeminutesmax']
|
except:
|
||||||
|
value_pace = avpace
|
||||||
|
try:
|
||||||
|
value_power = request.POST['value_power']
|
||||||
|
except:
|
||||||
|
value_power = int(normp)
|
||||||
|
try:
|
||||||
|
value_work = request.POST['value_work']
|
||||||
|
except:
|
||||||
|
value_work = int(normw)
|
||||||
|
try:
|
||||||
|
value_spm = request.POST['value_spm']
|
||||||
|
except:
|
||||||
|
value_spm = int(normspm)
|
||||||
|
try:
|
||||||
|
activeminutesmin = request.POST['activeminutesmin']
|
||||||
|
except:
|
||||||
|
activeminutesmin = 0
|
||||||
|
try:
|
||||||
|
activeminutesmax = request.POST['activeminutesmax']
|
||||||
|
except:
|
||||||
|
pass
|
||||||
try:
|
try:
|
||||||
activesecondsmin = 60.*float(activeminutesmin)
|
activesecondsmin = 60.*float(activeminutesmin)
|
||||||
activesecondsmax = 60.*float(activeminutesmax)
|
activesecondsmax = 60.*float(activeminutesmax)
|
||||||
|
|||||||
Reference in New Issue
Block a user