# HG changeset patch # User Paul Boddie # Date 1444944777 -7200 # Node ID b50f43cd79f889fe32ff2bb03c225a1abb50db69 # Parent 96b31443c14e4490e6c96d41d5458e1394b47723 Eliminated duplicate events in conflicts lists. diff -r 96b31443c14e -r b50f43cd79f8 imipweb/event.py --- a/imipweb/event.py Thu Oct 15 23:30:41 2015 +0200 +++ b/imipweb/event.py Thu Oct 15 23:32:57 2015 +0200 @@ -676,7 +676,7 @@ # Indicate whether there are conflicting events. - conflicts = [] + conflicts = set() attendee_map = uri_dict(self.obj.get_value_map("ATTENDEE")) for name, participant in uri_parts(self.get_current_attendees()): @@ -713,8 +713,9 @@ p.transp != "ORG" ): - conflicts.append(p) + conflicts.add(p) + conflicts = list(conflicts) conflicts.sort() # Show any conflicts with periods of actual attendance.