get dates timeperiod updates to work better with local time zones
This commit is contained in:
@@ -2511,7 +2511,10 @@ def history_view_data(request,userid=0):
|
||||
ddict['hrmax'] = 0
|
||||
|
||||
ddict['powermean'] = int(wavg(ddf,'power','deltat'))
|
||||
ddict['powermax'] = ddf['power'].max().astype(int)
|
||||
try:
|
||||
ddict['powermax'] = ddf['power'].max().astype(int)
|
||||
except KeyError:
|
||||
ddict['powermax'] = 0
|
||||
ddict['nrworkouts'] = a_workouts.count()
|
||||
listofdicts.append(ddict)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user