From af82c46d576ac7d24801d1851ebcce1eb97390d5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 22 Jan 2023 10:32:06 +0100 Subject: get latets stations: remove duplicates --- lib/Travelynx/Controller/Traveling.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 357e3bd..855f4ef 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -416,7 +416,8 @@ sub homepage { } } else { - @recent_targets = $self->journeys->get_latest_checkout_stations( + @recent_targets = uniq_by { $_->{eva} } + $self->journeys->get_latest_checkout_stations( uid => $self->current_user->{id} ); } $self->render( -- cgit v1.2.3