Wed, 06 Dec 2017 22:47:45 +0200
Käytä lähtöaikoja
buses.py | file | annotate | diff | comparison | revisions | |
busroute.py | file | annotate | diff | comparison | revisions |
--- a/buses.py Fri Dec 01 08:04:57 2017 +0200 +++ b/buses.py Wed Dec 06 22:47:45 2017 +0200 @@ -114,7 +114,7 @@ stop = trip.contains_stop(self) 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 + stop_time = datetime.combine(date, time()) + stop.departure_time if stop_time + timedelta(minutes = 1) >= now(): # lisää halt listaan. result.append({
--- a/busroute.py Fri Dec 01 08:04:57 2017 +0200 +++ b/busroute.py Wed Dec 06 22:47:45 2017 +0200 @@ -25,10 +25,6 @@ else: have_already.add(route[i]) i += 1 - -# if 'kauppatori' not in route: -# priorities['länsikeskus'] = priorities['skanssi'] = priorities['kauppatori'] - from_place = route[0] destination = route[-1] reitti_arvot = {}