Changeset 3277
- Timestamp:
- 04/17/08 09:04:39 (3 months ago)
- Files:
-
- plugins/moto-sync/motosync.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/moto-sync/motosync.py
r3276 r3277 565 565 now = datetime.now(dateutil.tz.tzutc()) 566 566 all_occurrences = ruleset.between(now, now + RRULE_FUTURE) 567 past_events = len(ruleset.between(eventdt, now, True)) 567 568 568 569 # add in the exception dates and rules (if any) … … 584 585 for num in range(len(all_occurrences)): 585 586 if all_occurrences[num] not in excepted_occurrences: 586 ret['exceptions'].append(num )587 ret['exceptions'].append(num + past_events) 587 588 588 589 return ret
