Unverified Commit a28be073 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

IRIS checkins: do not update station names via ÖBB HAFAS

They are often quite different and IMHO that's more confusing than helpful.
Plus, IRIS is legacy anyways.
parent 8ac29a58
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2028,6 +2028,7 @@ sub startup {
						$self->stations->add_or_update(
							stop => $stop,
							db   => $db,
							keep_name => 1,
							iris => 1,
						);
					}
+3 −2
Original line number Diff line number Diff line
@@ -139,6 +139,7 @@ sub get_backends {
sub add_or_update {
	my ( $self, %opt ) = @_;
	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