diff --git a/rowers/c2stuff.py b/rowers/c2stuff.py index 7ecea39e..5693e760 100644 --- a/rowers/c2stuff.py +++ b/rowers/c2stuff.py @@ -834,11 +834,11 @@ def add_workout_from_data(user,importid,data,strokedata, pace = pace.replace(0,300) velo = 500./pace + power = 2.8*velo**3 if workouttype == 'bike': velo = 1000./pace pace = 500./velo - power = 2.8*velo**3 # save csv # Create data frame with all necessary data to write to csv diff --git a/rowers/dataprepnodjango.py b/rowers/dataprepnodjango.py index 77b5b8fc..7dad7bb2 100644 --- a/rowers/dataprepnodjango.py +++ b/rowers/dataprepnodjango.py @@ -246,11 +246,11 @@ def add_c2_stroke_data_db(strokedata,workoutid,starttimeunix,csvfilename, pace = pace.replace(0,300) velo = 500./pace + power = 2.8*velo**3 if workouttype == 'bike': velo = 1000./pace - # This may be wrong for the bike erg - power = 2.8*velo**3 + # save csv # Create data frame with all necessary data to write to csv