fix err
This commit is contained in:
@@ -346,7 +346,8 @@ def trendflexdata(workouts, options, userid=0):
|
|||||||
ploterrorbars = options['ploterrorbars']
|
ploterrorbars = options['ploterrorbars']
|
||||||
ids = options['ids']
|
ids = options['ids']
|
||||||
workstrokesonly = not includereststrokes
|
workstrokesonly = not includereststrokes
|
||||||
savedata = options['savedata']
|
|
||||||
|
savedata = options.get('savedata',False)
|
||||||
|
|
||||||
|
|
||||||
fieldlist, fielddict = dataprep.getstatsfields()
|
fieldlist, fielddict = dataprep.getstatsfields()
|
||||||
@@ -621,7 +622,8 @@ def cpdata(workouts, options):
|
|||||||
'url': urls,
|
'url': urls,
|
||||||
})
|
})
|
||||||
|
|
||||||
if options['savedata']:
|
savedata = options.get('savedata',False)
|
||||||
|
if savedata:
|
||||||
return powerdf
|
return powerdf
|
||||||
|
|
||||||
if powerdf.empty: # pragma: no cover
|
if powerdf.empty: # pragma: no cover
|
||||||
|
|||||||
Reference in New Issue
Block a user