From 4c7c88f2b1bcc5de54de51fae057d736877e1a6c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 23 Oct 2020 14:47:40 +0100 Subject: fixed problem with repeating event in org detail page --- ctrack/organisations/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ctrack/organisations/views.py') diff --git a/ctrack/organisations/views.py b/ctrack/organisations/views.py index 76057bb..a1f43f7 100644 --- a/ctrack/organisations/views.py +++ b/ctrack/organisations/views.py @@ -122,7 +122,8 @@ class OrganisationDetailView(PermissionRequiredMixin, DetailView): ) for person in peoples ] - _all = list(itertools.chain(list(itertools.chain.from_iterable(_sdes)))) + _all = list(itertools.chain.from_iterable(_sdes)) + _all = set(_all) flat_sdes = sorted(_all, key=lambda e: e.date, reverse=True) for x in flat_sdes: if isinstance(x, NoteEvent): -- cgit v1.2.3