diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-29 10:27:07 +0100 |
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-29 10:27:07 +0100 |
| commit | 9876e7eb805ad4b3314b737a8b7b1a1b824b03fa (patch) | |
| tree | bc04661f9a4ee8f645658d9c94f444255e7a9669 | |
| parent | 28b530c8ce27f3316ca1cca6c62429bb1190f2a5 (diff) | |
IRIS: only request connections if suggestions are enabled
| -rw-r--r-- | lib/Travelynx/Command/work.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 7a7ce22..d735def 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -782,7 +782,8 @@ sub run { $self->app->add_stationinfo( $uid, 0, $train->train_id, $dep, $arr ); } - if ( defined $entry->{real_arr_ts} + if ( $suggestions_enabled + and defined $entry->{real_arr_ts} and $now->epoch - $entry->{real_arr_ts} < 900 ) { my @destinations |
