Skip to content

Commit

Permalink
Journeys->sanity_check: Allow a single trip to take up to three days
Browse files Browse the repository at this point in the history
Closes #182
  • Loading branch information
derf committed Nov 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 22a9345 commit 0b6a431
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Travelynx/Model/Journeys.pm
Original file line number Diff line number Diff line change
@@ -1101,14 +1101,14 @@ sub sanity_check {
. ' Teleportation und Zeitreisen werden in diesem Universum nicht unterstützt.';
}
if ( $journey->{sched_duration}
and $journey->{sched_duration} > 60 * 60 * 24 )
and $journey->{sched_duration} > 60 * 60 * 72 )
{
return 'Die Fahrt ist länger als 24 Stunden.';
return 'Die Fahrt ist länger als drei Tage.';
}
if ( $journey->{rt_duration}
and $journey->{rt_duration} > 60 * 60 * 24 )
and $journey->{rt_duration} > 60 * 60 * 72 )
{
return 'Die Fahrt ist länger als 24 Stunden.';
return 'Die Fahrt ist länger als drei Tage.';
}
if ( $journey->{kmh_route} > 500 or $journey->{kmh_beeline} > 500 ) {
return 'Die berechnete Geschwindigkeit beträgt über 500 km/h.'

0 comments on commit 0b6a431

Please sign in to comment.