From a28be0732118547e4058aad5ec1fcaebecf2c4d2 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 21 Dec 2025 16:28:16 +0100 Subject: IRIS checkins: do not update station names via ÖBB HAFAS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They are often quite different and IMHO that's more confusing than helpful. Plus, IRIS is legacy anyways. --- lib/Travelynx/Model/Stations.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Travelynx/Model/Stations.pm') diff --git a/lib/Travelynx/Model/Stations.pm b/lib/Travelynx/Model/Stations.pm index 6c647ec..3cb7c97 100644 --- a/lib/Travelynx/Model/Stations.pm +++ b/lib/Travelynx/Model/Stations.pm @@ -138,7 +138,8 @@ sub get_backends { # Slow for MOTIS backends sub add_or_update { my ( $self, %opt ) = @_; - my $stop = $opt{stop}; + my $stop = $opt{stop}; + my $keep_name = $opt{keep_name}; $opt{db} //= $self->{pg}->db; $opt{backend_id} //= $self->get_backend_id(%opt); @@ -285,7 +286,7 @@ sub add_or_update { $opt{db}->update( 'stations', { - name => $loc->name, + ( $keep_name ? () : ( name => $loc->name ) ), lat => $loc->lat, lon => $loc->lon, archived => 0 -- cgit v1.2.3