diff options
Diffstat (limited to 'bvggrabber/api')
-rw-r--r-- | bvggrabber/api/actualdeparture.py | 2 | ||||
-rw-r--r-- | bvggrabber/api/scheduleddeparture.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bvggrabber/api/actualdeparture.py b/bvggrabber/api/actualdeparture.py index 63cb97a..233dfb5 100644 --- a/bvggrabber/api/actualdeparture.py +++ b/bvggrabber/api/actualdeparture.py @@ -41,7 +41,7 @@ class ActualDepartureQueryApi(QueryApi): result = soup.find('div', {'id': '', 'class': 'ivu_result_box'}) if result is None: - return Response(False, []) + return Response(True, self.station, []) rows = result.find_all('tr') departures = [] for row in rows: diff --git a/bvggrabber/api/scheduleddeparture.py b/bvggrabber/api/scheduleddeparture.py index 2e666a4..7a30d5f 100644 --- a/bvggrabber/api/scheduleddeparture.py +++ b/bvggrabber/api/scheduleddeparture.py @@ -65,7 +65,7 @@ class ScheduledDepartureQueryApi(QueryApi): # The station seems to exist tbody = soup.find('tbody') if tbody is None: - return Response(False, []) + return Response(True, self.station, []) rows = tbody.find_all('tr') departures = [] for row in rows: |