Commit 7cd9c86d authored by networkException's avatar networkException Committed by derf
Browse files

Journeys->add: allow consecutive route stops at the same timestamp

This patch relaxes the route timestamp sanity checking introduced
in 9e6728a3 by allowing the same
timestamp (usually minute accuracy) to occur multiple times for
consecutive stops. This is common for trams, for example.
parent 22244844
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -201,9 +201,9 @@ sub add {
				$ts      = $parser->parse_datetime( $+{timestamp} );
				if ($ts) {
					my $epoch = $ts->epoch;
					if ( $epoch <= $prev_epoch ) {
					if ( $epoch < $prev_epoch ) {
						return ( undef,
'Zeitstempel der Unterwegshalte müssen streng monoton steigend sein (keine Zeitreisen und keine Portale)'
'Zeitstempel der Unterwegshalte müssen monoton steigend sein (keine Zeitreisen und keine Portale)'
						);
					}
					$station_data{sched_arr} = $epoch;