1
0
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:
Krateng 2019-09-26 18:24:42 +02:00
parent 59e38e24ee
commit af90e2633c

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_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: