diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-12-23 22:57:45 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-12-23 22:57:45 +0100 |
commit | f9f1eec49907c7f20a311f07218ffbc2323a74fe (patch) | |
tree | 2eac276b240328e2dd6daf0b27c375141512d5ea /lib/Travelynx/Command/work.pm | |
parent | c6634b409750e7c79f7c4369a7c7ec5929868214 (diff) |
Use EVA IDs instead of travelynx-internal station IDs. Not 100% tested yet.
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-rw-r--r-- | lib/Travelynx/Command/work.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 00eefc6..fbbf958 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -23,8 +23,8 @@ sub run { { my $uid = $entry->{user_id}; - my $dep = $entry->{dep_ds100}; - my $arr = $entry->{arr_ds100}; + my $dep = $entry->{dep_eva}; + my $arr = $entry->{arr_eva}; my $train_id = $entry->{train_id}; # Note: IRIS data is not always updated in real-time. Both departure and @@ -72,7 +72,7 @@ sub run { eval { if ( - $entry->{arr_name} + $arr and ( not $entry->{real_arr_ts} or $now->epoch - $entry->{real_arr_ts} < 600 ) ) |