From 1af5d86a423b3629ea222d18e6f8353a22e04e18 Mon Sep 17 00:00:00 2001 From: Vexed Date: Sat, 14 Jan 2023 13:24:14 +0000 Subject: [PATCH] fix function call from departures -> arrivals --- rttapi/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rttapi/api.py b/rttapi/api.py index 4e677d6..9d2e803 100644 --- a/rttapi/api.py +++ b/rttapi/api.py @@ -139,7 +139,7 @@ def search_station_arrivals(self, station_code: str) -> SearchResult: :return: A rttapi.model.SearchResult object mirroring the JSON reply """ - json = self.__api.fetch_station_departure_info(self.credentials, station_code) + json = self.__api.fetch_station_arrival_info(self.credentials, station_code) return parser.parse_search(json) def fetch_service_info_datetime(self, service_uid: str, service_date: datetime.date) -> Service: