buses.py

changeset 42
0b53b7c70875
parent 41
4354d459c231
child 71
d2e19670b772
--- a/buses.py	Wed Jun 28 17:52:42 2017 +0300
+++ b/buses.py	Sun Jul 02 16:14:56 2017 +0300
@@ -112,7 +112,7 @@
 				if stop and (arrivals or not stop.is_arrival) and stop is not trip.schedule[-1]:
 					# ja jos tämä halt on tulevaisuudessa,
 					stop_time = datetime.combine(date, time()) + stop.arrival_time
-					if stop_time >= now():
+					if stop_time + timedelta(minutes = 1) >= now():
 						# lisää halt listaan.
 						result.append({
 							'time': stop_time,

mercurial