summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-22 10:32:06 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-22 10:32:06 +0100
commitaf82c46d576ac7d24801d1851ebcce1eb97390d5 (patch)
tree5087ff6fd33fce96d5603fdf2f57aa676b8197c9 /lib
parent3e2491a9bc6579ccf017f0dbc2573b5ab4c75613 (diff)
get latets stations: remove duplicates
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm3
1 files changed, 2 insertions, 1 deletions
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(