fixed data mapping error
This commit is contained in:
@@ -317,7 +317,8 @@ def trendflexdata(workouts, options,userid=0):
|
||||
datadf['date'].replace(datemapping,inplace=True)
|
||||
|
||||
today = datetime.date.today()
|
||||
datadf['days ago'] = map(lambda x : x.days, datadf.date - today)
|
||||
datadf['days ago'] = list(map(lambda x : x.days, datadf.date - today))
|
||||
|
||||
|
||||
if groupby != 'date':
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user