aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-23 14:47:40 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-23 14:47:40 +0100
commit4c7c88f2b1bcc5de54de51fae057d736877e1a6c (patch)
tree1e17658629623636bb484646412372243f4db95a
parent070dd2999aba8a574fb2a2e9e23968e0d42e2490 (diff)
fixed problem with repeating event in org detail page
-rw-r--r--ctrack/organisations/views.py3
1 files changed, 2 insertions, 1 deletions
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):