diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2020-10-01 19:48:18 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2020-10-01 19:48:18 +0200 | 
| commit | 64c9b5b160d392793b004a618635bd20d1653b2d (patch) | |
| tree | 5394fcb1ed2211c2c2722c568babc1fd5c947e4a | |
| parent | 07e0f8970681422a48fec9da5d14ad2a2b3735bd (diff) | |
traewelling checkin: the time limitation isn't needed
| -rw-r--r-- | lib/Travelynx/Model/Traewelling.pm | 8 | ||||
| -rw-r--r-- | templates/traewelling.html.ep | 3 | 
2 files changed, 4 insertions, 7 deletions
diff --git a/lib/Travelynx/Model/Traewelling.pm b/lib/Travelynx/Model/Traewelling.pm index eb7201f..181c519 100644 --- a/lib/Travelynx/Model/Traewelling.pm +++ b/lib/Travelynx/Model/Traewelling.pm @@ -183,8 +183,7 @@ sub set_sync {  sub get_pushable_accounts {  	my ($self) = @_; -	my $now    = $self->now->epoch; -	my $res    = $self->{pg}->db->query( +	my $res = $self->{pg}->db->query(  		qq{select t.user_id as uid, t.token as token, t.data as data,  			i.checkin_station_id as dep_eva, i.checkout_station_id as arr_eva,  			i.data as journey_data, i.train_type as train_type, @@ -195,10 +194,7 @@ sub get_pushable_accounts {  			where t.push_sync = True  			and i.checkout_station_id is not null  			and i.cancelled = False -			and (extract(epoch from i.sched_departure) > ? -				or extract(epoch from i.real_departure) > ?) -			and extract(epoch from i.sched_departure) < ? -		}, $now - 300, $now - 300, $now + 600 +		}  	);  	return $res->expand->hashes->each;  } diff --git a/templates/traewelling.html.ep b/templates/traewelling.html.ep index bf776a3..d4e4ffd 100644 --- a/templates/traewelling.html.ep +++ b/templates/traewelling.html.ep @@ -141,7 +141,8 @@  				</div>  				<p>Die Synchronisierung erfolgt spätestens drei Minuten nach der  					Zielwahl.  Träwelling-Checkins können von travelynx noch nicht -					rückgängig gemacht werden.</p> +					rückgängig gemacht werden. Eine nachträgliche Änderung der +					Zielstation wird nicht übernommen.</p>  			</div>  			<div class="input-field col s12">  				<div>  | 
