summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 76ab37e..b60ee73 100644
--- a/index.pl
+++ b/index.pl
@@ -65,6 +65,15 @@ sub get_results_for {
return @{$results};
}
+helper 'is_important' => sub {
+ my ( $self, $stop ) = @_;
+
+ if ( $stop =~ m{ Hbf | Flughafen }ox ) {
+ return 1;
+ }
+ return;
+};
+
sub handle_request {
my $self = shift;
my $station = $self->stash('station');