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