video bug fix
This commit is contained in:
@@ -185,7 +185,10 @@ def create_c2_stroke_data_db(
|
||||
pace = 500.*totalseconds/distance
|
||||
|
||||
if workouttype in ['rower','slides','dynamic']:
|
||||
velo = distance/totalseconds
|
||||
try:
|
||||
velo = distance/totalseconds
|
||||
except ZeroDivisionError:
|
||||
velo = 0
|
||||
power = 2.8*velo**3
|
||||
else:
|
||||
power = 0
|
||||
|
||||
Reference in New Issue
Block a user