diff options
author | Daniel Friesel <derf@finalrewind.org> | 2023-01-22 10:32:06 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2023-01-22 10:32:06 +0100 |
commit | af82c46d576ac7d24801d1851ebcce1eb97390d5 (patch) | |
tree | 5087ff6fd33fce96d5603fdf2f57aa676b8197c9 /lib | |
parent | 3e2491a9bc6579ccf017f0dbc2573b5ab4c75613 (diff) |
get latets stations: remove duplicates
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 3 |
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( |