diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 11423ffa..0a936218 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -1506,6 +1506,10 @@ def weightfromrecord(row,metricchoice): if vv == 0: if metricchoice == 'rscore' and row['hrtss'] > 0: # pragma: no cover return row['hrtss'] + else: + dd = 3600*row['duration'].hour+60*row['duration'].minute+row['duration'].second + dd = dd/3600 + return rpetotss[row['rpe']]*dd if vv < 0: w = Workout.objects.get(id=row['id']) trimp, hrtss = dataprep.workout_trimp(w) @@ -4955,7 +4959,7 @@ def interactive_multiflex(datadf, xparam, yparam, groupby, extratitle='', text_color='black', text_font_size='10pt', ) - slidertext = 'SPM: {:.0f}-{:.0f}, WpS: {:.0f}-{:.0f}'.format( + slidertext = "SPM: {:.0f}-{:.0f}, WpS: {:.0f}-{:.0f}".format( spmmin, spmmax, workmin, workmax ) sliderlabel = Label(x=50, y=20, x_units='screen', y_units='screen', diff --git a/rowers/tests/testdata/testdata.tcx.gz b/rowers/tests/testdata/testdata.tcx.gz index ce46f3dd..a343ff95 100644 Binary files a/rowers/tests/testdata/testdata.tcx.gz and b/rowers/tests/testdata/testdata.tcx.gz differ