no future dates in activity chart
This commit is contained in:
@@ -235,8 +235,17 @@ def interactive_activitychart(workouts,startdate,enddate):
|
||||
durations.append(du)
|
||||
types.append(w.workouttype)
|
||||
|
||||
d = startdate
|
||||
try:
|
||||
d = utc.localize(startdate)
|
||||
except ValueError:
|
||||
d = startdate
|
||||
|
||||
try:
|
||||
enddate = utc.localize(enddate)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
|
||||
while d<=enddate:
|
||||
dates.append(d.strftime('%m/%d'))
|
||||
durations.append(0)
|
||||
|
||||
Reference in New Issue
Block a user