From af90e2633c6351e1265781e0db63082cdae5adc7 Mon Sep 17 00:00:00 2001 From: Krateng Date: Thu, 26 Sep 2019 18:24:42 +0200 Subject: [PATCH] Fixed time ranges again --- malojatime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/malojatime.py b/malojatime.py index 9ed0a55..7c8fd81 100644 --- a/malojatime.py +++ b/malojatime.py @@ -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: