adding extra parameters to X axis flex chart
This commit is contained in:
@@ -8290,25 +8290,13 @@ def workout_flexchart3_view(request,*args,**kwargs):
|
||||
yparam1 = yparam1.replace('/','_slsh_')
|
||||
yparam2 = yparam2.replace('/','_slsh_')
|
||||
|
||||
try:
|
||||
extrametrics.pop('originalvelo')
|
||||
except KeyError:
|
||||
pass
|
||||
from rowers.metrics import nometrics
|
||||
|
||||
try:
|
||||
extrametrics.pop('cumdist')
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
try:
|
||||
extrametrics.pop(' Cadence (strokes_slsh_min)')
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
try:
|
||||
extrametrics.pop(' WorkPerStroke (joules)')
|
||||
except KeyError:
|
||||
pass
|
||||
for metric in nometrics:
|
||||
try:
|
||||
extrametrics.pop(metric)
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
return render(request,
|
||||
'flexchart3otw.html',
|
||||
|
||||
Reference in New Issue
Block a user