adding axis labels to instroke plots for Quiske
This commit is contained in:
@@ -307,6 +307,8 @@ queuelow = django_rq.get_queue('low')
|
||||
queuehigh = django_rq.get_queue('high')
|
||||
|
||||
|
||||
g_acc = 9.80665
|
||||
|
||||
def get_totals(workouts):
|
||||
totalseconds = 0
|
||||
totalmeters = 0
|
||||
|
||||
@@ -3166,11 +3166,16 @@ def instroke_data(request, metric='', spm_min=15, spm_max=45, activeminutesmin=0
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
factor = 1
|
||||
if metric == 'boat accelerator curve':
|
||||
factor = g_acc
|
||||
|
||||
|
||||
data = rowdata.get_instroke_data(metric, spm_min=spm_min,
|
||||
spm_max=spm_max,
|
||||
activeminutesmin=activeminutesmin,
|
||||
activeminutesmax=activeminutesmax,
|
||||
factor=factor,
|
||||
)
|
||||
|
||||
filename = str(uuid4())+'.csv'
|
||||
@@ -3375,12 +3380,17 @@ def instroke_chart_interactive(request, id=0, analysis=0, userid=0):
|
||||
activesecondsmin = 60.*activeminutesmin
|
||||
activesecondsmax = 60.*activeminutesmax
|
||||
|
||||
factor = 1
|
||||
if metric == 'boat accelerator curve':
|
||||
factor = g_acc
|
||||
|
||||
data = rowdata.get_instroke_data(
|
||||
metric,
|
||||
spm_min=spm_min,
|
||||
spm_max=spm_max,
|
||||
activeminutesmin=activeminutesmin,
|
||||
activeminutesmax=activeminutesmax,
|
||||
factor=factor,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user