Loading lib/Travelynx.pm +2 −11 Original line number Diff line number Diff line Loading @@ -538,21 +538,12 @@ qq{select * from pending_mails where email = ? and num_tries > 1;} # If a user is already checked in, we assume that they forgot to # check out and do it for them. # XXX this is an ugly workaround for the UNIQUE constraint on # (user id, action timestamp): Ensure that checkout and re-checkin # work even if the previous checkin was less than a second ago. sleep(1); $self->checkout( $station, 1 ); # XXX same workaround: We can't checkin immediately after checkout. sleep(1); } elsif ( $user->{cancelled} ) { # Same sleep(1); $self->cancelled_to($station); sleep(1); } my $success = $self->app->action_query->execute( Loading Loading
lib/Travelynx.pm +2 −11 Original line number Diff line number Diff line Loading @@ -538,21 +538,12 @@ qq{select * from pending_mails where email = ? and num_tries > 1;} # If a user is already checked in, we assume that they forgot to # check out and do it for them. # XXX this is an ugly workaround for the UNIQUE constraint on # (user id, action timestamp): Ensure that checkout and re-checkin # work even if the previous checkin was less than a second ago. sleep(1); $self->checkout( $station, 1 ); # XXX same workaround: We can't checkin immediately after checkout. sleep(1); } elsif ( $user->{cancelled} ) { # Same sleep(1); $self->cancelled_to($station); sleep(1); } my $success = $self->app->action_query->execute( Loading