bike erg export to C2
This commit is contained in:
@@ -394,6 +394,8 @@ def createc2workoutdata(w):
|
||||
d[0] = d[1]
|
||||
p = abs(10*row.df.ix[:,' Stroke500mPace (sec/500m)'].values)
|
||||
p = np.clip(p,0,3600)
|
||||
if w.workouttype == 'bike':
|
||||
p = 2.0*p
|
||||
t = t.astype(int)
|
||||
d = d.astype(int)
|
||||
p = p.astype(int)
|
||||
@@ -834,6 +836,7 @@ def add_workout_from_data(user,importid,data,strokedata,
|
||||
velo = 500./pace
|
||||
if workouttype == 'bike':
|
||||
velo = 1000./pace
|
||||
pace = 500./velo
|
||||
|
||||
power = 2.8*velo**3
|
||||
|
||||
|
||||
@@ -87,6 +87,7 @@ $( document ).ready(function() {
|
||||
|| $(this).val() == 'dynamic'
|
||||
|| $(this).val() == 'slides'
|
||||
|| $(this).val() == 'paddle'
|
||||
|| $(this).val() == 'bike'
|
||||
|| $(this).val() == 'snow'
|
||||
) {
|
||||
$('#id_boattype').toggle(false);
|
||||
|
||||
@@ -21,6 +21,7 @@ $( document ).ready(function() {
|
||||
|| $(this).val() == 'dynamic'
|
||||
|| $(this).val() == 'slides'
|
||||
|| $(this).val() == 'paddle'
|
||||
|| $(this).val() == 'bike'
|
||||
|| $(this).val() == 'snow'
|
||||
) {
|
||||
$('#id_boattype').toggle(false);
|
||||
|
||||
@@ -29,6 +29,7 @@ $( document ).ready(function() {
|
||||
|| $(this).val() == 'slides'
|
||||
|| $(this).val() == 'paddle'
|
||||
|| $(this).val() == 'snow'
|
||||
|| $(this).val() == 'bike'
|
||||
) {
|
||||
$('#id_boattype').toggle(false);
|
||||
$('#id_boattype').val('1x');
|
||||
|
||||
Reference in New Issue
Block a user