diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-08 18:11:28 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-08 18:11:28 +0100 |
commit | 42f9a00d98dbd675234c05b3e25c3e722cfdd7ba (patch) | |
tree | cc27bb0a0746c19829d607e14e6cd39537997ad4 /lib/Travelynx/Model/Journeys.pm | |
parent | 35660567614dea8d4572bcfe5bb1890504be0c20 (diff) |
EFA support (WiP)efa-support
Diffstat (limited to 'lib/Travelynx/Model/Journeys.pm')
-rwxr-xr-x | lib/Travelynx/Model/Journeys.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm index 905c426..93e59e7 100755 --- a/lib/Travelynx/Model/Journeys.pm +++ b/lib/Travelynx/Model/Journeys.pm @@ -1722,6 +1722,8 @@ sub compute_stats { sub get_stats { my ( $self, %opt ) = @_; + $self->{log}->debug("get_stats"); + if ( $opt{cancelled} ) { $self->{log} ->warn('get_journey_stats called with illegal option cancelled => 1'); @@ -1748,9 +1750,12 @@ sub get_stats { ) ) { + $self->{log}->debug("got cached journey stats for $year/$month"); return $stats; } + $self->{log}->debug("computing journey stats for $year/$month"); + my $interval_start = DateTime->new( time_zone => 'Europe/Berlin', year => 2000, |