diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-07 12:13:15 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-07 12:13:15 +0200 |
commit | 7e9f6bdf90605d43f10bfe82a2611f9436546be7 (patch) | |
tree | a586d46a008453c7c13d10f3fcdea8fbbb6c939d /lib/Travelynx/Command/dumpstops.pm | |
parent | 1bb348ad9a62884309373a5249165478fd13a627 (diff) |
dumpstops: provide backend name and type rather than just opaque IDs2.8.10
Diffstat (limited to 'lib/Travelynx/Command/dumpstops.pm')
-rw-r--r-- | lib/Travelynx/Command/dumpstops.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Travelynx/Command/dumpstops.pm b/lib/Travelynx/Command/dumpstops.pm index c8ecd7a..4d20bbd 100644 --- a/lib/Travelynx/Command/dumpstops.pm +++ b/lib/Travelynx/Command/dumpstops.pm @@ -24,12 +24,13 @@ sub run { or die("open($filename): $!\n"); my $csv = Text::CSV->new( { eol => "\r\n" } ); - $csv->combine(qw(name eva lat lon source archived)); + $csv->combine(qw(name eva lat lon backend is_iris is_hafas)); print $fh $csv->string; my $iter = $self->app->stations->get_db_iterator; while ( my $row = $iter->hash ) { - $csv->combine( @{$row}{qw{name eva lat lon source archived}} ); + $csv->combine( + @{$row}{qw{name eva lat lon backend is_iris is_hafas}} ); print $fh $csv->string; } close($fh); |