diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-22 21:25:55 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-22 21:25:55 +0100 |
commit | 238ada5309129ebee55f01823110777ca5016cce (patch) | |
tree | 52449097aaa769f5725940ec130b00f615e99f96 /lib/Travel/Status/DE/HAFAS | |
parent | c8436d54ed3281c240c5533f1b6152751946a306 (diff) |
Journey: support journey JSON that does not provide a date attribute
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Journey.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index 9295cae..d8d63ff 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -37,7 +37,7 @@ sub new { my $hafas = $opt{hafas}; my $journey = $opt{journey}; - my $date = $journey->{date}; + my $date = $opt{date} // $journey->{date}; my $direction = $journey->{dirTxt}; my $jid = $journey->{jid}; |