1.1 --- a/imiptools/period.py Fri May 15 14:55:23 2015 +0200
1.2 +++ b/imiptools/period.py Fri May 15 14:56:21 2015 +0200
1.3 @@ -128,14 +128,18 @@
1.4 (which if omitted causes the "parent" object's periods to be referenced).
1.5 """
1.6
1.7 + removed = False
1.8 i = 0
1.9 while i < len(freebusy):
1.10 fb = freebusy[i]
1.11 if fb.uid == uid and fb.recurrenceid == recurrenceid:
1.12 del freebusy[i]
1.13 + removed = True
1.14 else:
1.15 i += 1
1.16
1.17 + return removed
1.18 +
1.19 def remove_additional_periods(freebusy, uid, recurrenceids=None):
1.20
1.21 """