1.1 --- a/imiptools/handlers/scheduling/common.py Sat May 14 00:56:54 2016 +0200
1.2 +++ b/imiptools/handlers/scheduling/common.py Sat May 14 18:46:04 2016 +0200
1.3 @@ -55,16 +55,15 @@
1.4 for user in users:
1.5 conflicts[user] = 0
1.6
1.7 - for period in handler.get_periods(handler.obj):
1.8 - overlapping = freebusy.get_overlapping(period)
1.9 + overlapping = freebusy.get_overlapping(handler.get_periods(handler.obj))
1.10
1.11 - # Where scheduling cannot occur, find the busy potential users.
1.12 + # Where scheduling cannot occur, find the busy potential users.
1.13
1.14 - if overlapping:
1.15 - for p in overlapping:
1.16 - involved = attendee and p.attendee or p.organiser
1.17 - if conflicts.has_key(involved):
1.18 - conflicts[involved] += 1
1.19 + if overlapping:
1.20 + for p in overlapping:
1.21 + involved = attendee and p.attendee or p.organiser
1.22 + if conflicts.has_key(involved):
1.23 + conflicts[involved] += 1
1.24
1.25 return conflicts
1.26