Loading lib/Travelynx.pm +0 −2 Original line number Diff line number Diff line Loading @@ -2192,7 +2192,6 @@ sub startup { train_line => $latest->{train_line}, train_no => $latest->{train_no}, train_id => $latest->{train_id}, train_color => $latest->{train_color}, sched_departure => epoch_to_dt( $latest->{sched_dep_ts} ), real_departure => epoch_to_dt( $latest->{real_dep_ts} ), dep_ds100 => $latest->{dep_ds100}, Loading Loading @@ -2287,7 +2286,6 @@ sub startup { line => $status->{train_line}, no => $status->{train_no}, id => $status->{train_id}, color => $status->{train_color}, hafasId => $status->{extra_data}{trip_id}, }, intermediateStops => [], Loading lib/Travelynx/Command/database.pm +3 −6 Original line number Diff line number Diff line Loading @@ -2894,9 +2894,6 @@ qq{select distinct checkout_station_id from in_transit where backend_id = 0;} stations.source = stations_external_ids.backend_id ; alter table in_transit add column train_color varchar(6); alter table journeys add column train_color varchar(6); drop view in_transit_str; drop view journeys_str; drop view users_with_backend; Loading @@ -2908,7 +2905,7 @@ qq{select distinct checkout_station_id from in_transit where backend_id = 0;} backend.efa as is_efa, backend.dbris as is_dbris, backend.motis as is_motis, backend.name as backend_name, in_transit.backend_id as backend_id, train_type, train_line, train_no, train_id, train_color, train_type, train_line, train_no, train_id, extract(epoch from checkin_time) as checkin_ts, extract(epoch from sched_departure) as sched_dep_ts, extract(epoch from real_departure) as real_dep_ts, Loading Loading @@ -2948,7 +2945,7 @@ qq{select distinct checkout_station_id from in_transit where backend_id = 0;} backend.efa as is_efa, backend.dbris as is_dbris, backend.motis as is_motis, backend.name as backend_name, journeys.backend_id as backend_id, train_type, train_line, train_no, train_id, train_color, train_type, train_line, train_no, train_id, extract(epoch from checkin_time) as checkin_ts, extract(epoch from sched_departure) as sched_dep_ts, extract(epoch from real_departure) as real_dep_ts, Loading Loading @@ -2993,7 +2990,7 @@ qq{select distinct checkout_station_id from in_transit where backend_id = 0;} create view follows_in_transit as select r1.subject_id as follower_id, user_id as followee_id, users.name as followee_name, train_type, train_line, train_no, train_id, train_color, train_type, train_line, train_no, train_id, backend.iris as is_iris, backend.hafas as is_hafas, backend.efa as is_efa, backend.dbris as is_dbris, backend.motis as is_motis, Loading lib/Travelynx/Model/InTransit.pm +1 −2 Original line number Diff line number Diff line Loading @@ -309,7 +309,6 @@ sub add { train_no => q{}, train_id => $journey->id, train_line => $journey->route_name, train_color => $journey->route_color, sched_departure => $stopover->scheduled_departure, real_departure => $stopover->departure, route => $json->encode( \@route ), Loading Loading @@ -547,7 +546,7 @@ sub get_timeline { return $db->select( 'follows_in_transit', [ qw(followee_name train_type train_line train_no train_id train_color dep_eva dep_name arr_eva arr_name) qw(followee_name train_type train_line train_no train_id dep_eva dep_name arr_eva arr_name) ], $where )->hashes->each; Loading lib/Travelynx/Model/Journeys.pm +1 −2 Original line number Diff line number Diff line Loading @@ -549,7 +549,7 @@ sub get { my @select = ( qw(journey_id is_dbris is_iris is_hafas is_motis backend_name backend_id train_type train_line train_no train_color checkin_ts sched_dep_ts real_dep_ts dep_eva dep_ds100 dep_name dep_lat dep_lon checkout_ts sched_arr_ts real_arr_ts arr_eva arr_ds100 arr_name arr_lat arr_lon cancelled edited route messages user_data visibility effective_visibility) qw(journey_id is_dbris is_iris is_hafas is_motis backend_name backend_id train_type train_line train_no checkin_ts sched_dep_ts real_dep_ts dep_eva dep_ds100 dep_name dep_lat dep_lon checkout_ts sched_arr_ts real_arr_ts arr_eva arr_ds100 arr_name arr_lat arr_lon cancelled edited route messages user_data visibility effective_visibility) ); my %where = ( user_id => $uid, Loading Loading @@ -616,7 +616,6 @@ sub get { type => $entry->{train_type}, line => $entry->{train_line}, no => $entry->{train_no}, color => $entry->{train_color}, from_eva => $entry->{dep_eva}, from_ds100 => $entry->{dep_ds100}, from_name => $entry->{dep_name}, Loading templates/_connections.html.ep +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ % if ($train->platform) { <span>Gleis <%= $train->platform %></span> % } <span class="dep-line <%= $train->type // q{} %>" style="background-color: #<%= $train->color %>;"> <span class="dep-line <%= $train->type // q{} %>"> %= $train->line </span> </span> Loading Loading
lib/Travelynx.pm +0 −2 Original line number Diff line number Diff line Loading @@ -2192,7 +2192,6 @@ sub startup { train_line => $latest->{train_line}, train_no => $latest->{train_no}, train_id => $latest->{train_id}, train_color => $latest->{train_color}, sched_departure => epoch_to_dt( $latest->{sched_dep_ts} ), real_departure => epoch_to_dt( $latest->{real_dep_ts} ), dep_ds100 => $latest->{dep_ds100}, Loading Loading @@ -2287,7 +2286,6 @@ sub startup { line => $status->{train_line}, no => $status->{train_no}, id => $status->{train_id}, color => $status->{train_color}, hafasId => $status->{extra_data}{trip_id}, }, intermediateStops => [], Loading
lib/Travelynx/Command/database.pm +3 −6 Original line number Diff line number Diff line Loading @@ -2894,9 +2894,6 @@ qq{select distinct checkout_station_id from in_transit where backend_id = 0;} stations.source = stations_external_ids.backend_id ; alter table in_transit add column train_color varchar(6); alter table journeys add column train_color varchar(6); drop view in_transit_str; drop view journeys_str; drop view users_with_backend; Loading @@ -2908,7 +2905,7 @@ qq{select distinct checkout_station_id from in_transit where backend_id = 0;} backend.efa as is_efa, backend.dbris as is_dbris, backend.motis as is_motis, backend.name as backend_name, in_transit.backend_id as backend_id, train_type, train_line, train_no, train_id, train_color, train_type, train_line, train_no, train_id, extract(epoch from checkin_time) as checkin_ts, extract(epoch from sched_departure) as sched_dep_ts, extract(epoch from real_departure) as real_dep_ts, Loading Loading @@ -2948,7 +2945,7 @@ qq{select distinct checkout_station_id from in_transit where backend_id = 0;} backend.efa as is_efa, backend.dbris as is_dbris, backend.motis as is_motis, backend.name as backend_name, journeys.backend_id as backend_id, train_type, train_line, train_no, train_id, train_color, train_type, train_line, train_no, train_id, extract(epoch from checkin_time) as checkin_ts, extract(epoch from sched_departure) as sched_dep_ts, extract(epoch from real_departure) as real_dep_ts, Loading Loading @@ -2993,7 +2990,7 @@ qq{select distinct checkout_station_id from in_transit where backend_id = 0;} create view follows_in_transit as select r1.subject_id as follower_id, user_id as followee_id, users.name as followee_name, train_type, train_line, train_no, train_id, train_color, train_type, train_line, train_no, train_id, backend.iris as is_iris, backend.hafas as is_hafas, backend.efa as is_efa, backend.dbris as is_dbris, backend.motis as is_motis, Loading
lib/Travelynx/Model/InTransit.pm +1 −2 Original line number Diff line number Diff line Loading @@ -309,7 +309,6 @@ sub add { train_no => q{}, train_id => $journey->id, train_line => $journey->route_name, train_color => $journey->route_color, sched_departure => $stopover->scheduled_departure, real_departure => $stopover->departure, route => $json->encode( \@route ), Loading Loading @@ -547,7 +546,7 @@ sub get_timeline { return $db->select( 'follows_in_transit', [ qw(followee_name train_type train_line train_no train_id train_color dep_eva dep_name arr_eva arr_name) qw(followee_name train_type train_line train_no train_id dep_eva dep_name arr_eva arr_name) ], $where )->hashes->each; Loading
lib/Travelynx/Model/Journeys.pm +1 −2 Original line number Diff line number Diff line Loading @@ -549,7 +549,7 @@ sub get { my @select = ( qw(journey_id is_dbris is_iris is_hafas is_motis backend_name backend_id train_type train_line train_no train_color checkin_ts sched_dep_ts real_dep_ts dep_eva dep_ds100 dep_name dep_lat dep_lon checkout_ts sched_arr_ts real_arr_ts arr_eva arr_ds100 arr_name arr_lat arr_lon cancelled edited route messages user_data visibility effective_visibility) qw(journey_id is_dbris is_iris is_hafas is_motis backend_name backend_id train_type train_line train_no checkin_ts sched_dep_ts real_dep_ts dep_eva dep_ds100 dep_name dep_lat dep_lon checkout_ts sched_arr_ts real_arr_ts arr_eva arr_ds100 arr_name arr_lat arr_lon cancelled edited route messages user_data visibility effective_visibility) ); my %where = ( user_id => $uid, Loading Loading @@ -616,7 +616,6 @@ sub get { type => $entry->{train_type}, line => $entry->{train_line}, no => $entry->{train_no}, color => $entry->{train_color}, from_eva => $entry->{dep_eva}, from_ds100 => $entry->{dep_ds100}, from_name => $entry->{dep_name}, Loading
templates/_connections.html.ep +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ % if ($train->platform) { <span>Gleis <%= $train->platform %></span> % } <span class="dep-line <%= $train->type // q{} %>" style="background-color: #<%= $train->color %>;"> <span class="dep-line <%= $train->type // q{} %>"> %= $train->line </span> </span> Loading