mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed time ranges again
This commit is contained in:
parent
59e38e24ee
commit
af90e2633c
@ -589,7 +589,7 @@ def ranges(since=None,to=None,within=None,timerange=None,step="month",stepn=1,tr
|
|||||||
current_end = d_start
|
current_end = d_start
|
||||||
current_start = current_end.next((stepn*trail-1)*-1)
|
current_start = current_end.next((stepn*trail-1)*-1)
|
||||||
#ranges = []
|
#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:
|
if current_start == current_end:
|
||||||
|
Loading…
Reference in New Issue
Block a user