From de933624c5d06e112f558411576a5418241f5759 Mon Sep 17 00:00:00 2001 From: Heiko Bernloehr Date: Fri, 5 Jun 2020 11:13:14 +0200 Subject: Removed doubled uniq method call. --- app/views/admin/participants/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/participants/show.html.haml b/app/views/admin/participants/show.html.haml index d2f8255..d230446 100644 --- a/app/views/admin/participants/show.html.haml +++ b/app/views/admin/participants/show.html.haml @@ -103,7 +103,7 @@ - if events_count < eventsm or events_count < 5 - events_first = Event.for_participant(@participant,-1).uniq -else - - events_first = Event.for_participant(@participant,-1).uniq.uniq.limit(eventsm/2) + - events_first = Event.for_participant(@participant,-1).uniq.limit(eventsm/2) - events_last = Event.for_participant(@participant,-1).uniq.limit(eventsm/2).offset(events_count-(eventsm/2)) - events_diff = events_last - events_first - unless events_first.blank? -- cgit v1.2.3