added workstrokesonly keyword to empower force curve
This commit is contained in:
@@ -328,7 +328,8 @@ def interactive_forcecurve(theworkouts,workstrokesonly=False):
|
|||||||
'peakforceangle','peakforce','spm','distance',
|
'peakforceangle','peakforce','spm','distance',
|
||||||
'workoutstate','driveenergy']
|
'workoutstate','driveenergy']
|
||||||
|
|
||||||
rowdata = dataprep.getsmallrowdata_db(columns,ids=ids)
|
rowdata = dataprep.getsmallrowdata_db(columns,ids=ids,
|
||||||
|
workstrokesonly=workstrokesonly)
|
||||||
|
|
||||||
rowdata.dropna(axis=1,how='all',inplace=True)
|
rowdata.dropna(axis=1,how='all',inplace=True)
|
||||||
rowdata.dropna(axis=0,how='any',inplace=True)
|
rowdata.dropna(axis=0,how='any',inplace=True)
|
||||||
|
|||||||
@@ -3368,7 +3368,7 @@ def workout_forcecurve_view(request,id=0,workstrokesonly=False):
|
|||||||
workstrokesonly = True
|
workstrokesonly = True
|
||||||
else:
|
else:
|
||||||
workstrokesonly = False
|
workstrokesonly = False
|
||||||
|
|
||||||
script,div,js_resources,css_resources = interactive_forcecurve([row],
|
script,div,js_resources,css_resources = interactive_forcecurve([row],
|
||||||
workstrokesonly=workstrokesonly)
|
workstrokesonly=workstrokesonly)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user