[B.END] typo on repetitons

This commit is contained in:
giuliof 2019-02-11 11:49:13 +01:00
parent a4ef1d8d80
commit e27b33ce8e
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ def getEvents(baseDay, interval):
event_count += 1
# Push all events inside interval
while event_dict['DATETIME'] < rightLimit and (repetition['until'] is not None and repetition['until'] >= event_dict['DATETIME'].date()):
while event_dict['DATETIME'] < rightLimit and (repetition['until'] is None or repetition['until'] >= event_dict['DATETIME'].date()):
event_dict['OCCURRENCE'] = event_count
events += [event_dict.copy()]
if repetition['count'] == event_count: