Fixed time ranges again

This commit is contained in:
Krateng 2019-09-26 18:24:42 +02:00
parent 59e38e24ee
commit af90e2633c
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ def ranges(since=None,to=None,within=None,timerange=None,step="month",stepn=1,tr
current_end = d_start
current_start = current_end.next((stepn*trail-1)*-1)
#ranges = []
while current_start.first_stamp() < lastincluded and (max_ is None or i < max_):
while current_end.first_stamp() < lastincluded and (max_ is None or i < max_):
if current_start == current_end: