Private
Public Access
1
0

fixed data mapping error

This commit is contained in:
Sander Roosendaal
2019-10-01 08:32:51 +02:00
parent e3b7ae2dbc
commit 13366a7d64

View File

@@ -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: