--- a/buses.py Thu Dec 20 23:11:07 2018 +0200 +++ b/buses.py Sat Jan 12 01:38:58 2019 +0200 @@ -229,10 +229,10 @@ self.stops |= other.stops other.stops = set() other.cached_center = None - def schedule(self, *, max_amount = 50): + def schedule(self, *, max_amount = 50, max_past = 0, arrivals = False): result = [] for stop in self.stops: - result += stop.schedule(max_amount = max_amount) + result += stop.schedule(max_amount = max_amount, max_past = max_past, arrivals = arrivals) result.sort(key = lambda schedule_entry: schedule_entry['time']) return result[:max_amount] def __lt__(self, other):