Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-06-04 09:34:19 +02:00
parent aefc3a200b
commit 388dac317c
2 changed files with 3 additions and 3 deletions

View File

@@ -6762,7 +6762,7 @@ def get_zones_report(rower,startdate,enddate,trainingzones='hr',date_agg='week')
dates.append(dd4)
dates_sorting.append(dd4)
else:
else: # pragma: no cover
dates.append(d.strftime('%Y/%m'))
dates_sorting.append(d.strftime('%Y/%m'))
@@ -6879,7 +6879,7 @@ def interactive_zoneschart(rower,data,startdate,enddate,trainingzones='hr',date_
if date_agg == 'week':
p.xaxis.axis_label = 'Week'
else:
else: # pragma: no cover
p.xaxis.axis_label = 'Month'
p.plot_width=550

View File

@@ -1086,7 +1086,7 @@ def trainingzones_view(request,userid=0):
if date_agg == 'week':
startdate = startdate - datetime.timedelta(days = startdate.weekday())
else:
else: # pragma: no cover
startdate = startdate - datetime.timedelta(days = (startdate.day-1))
form = TrainingZonesForm(initial={