diff options
author | Markus Holtermann <info@markusholtermann.eu> | 2013-06-15 12:48:49 +0200 |
---|---|---|
committer | Markus Holtermann <info@markusholtermann.eu> | 2013-06-15 12:48:49 +0200 |
commit | 7cab85af0247dad3d54dee50dc9d12524b304d02 (patch) | |
tree | 6b026124c5306c35793fb7ec619903d70a9c5654 /bvggrabber/api | |
parent | f8c24f973f191fa9590804e9d2939a18b9bdb775 (diff) | |
download | bvg-grabber-7cab85af0247dad3d54dee50dc9d12524b304d02.tar.gz bvg-grabber-7cab85af0247dad3d54dee50dc9d12524b304d02.tar.bz2 bvg-grabber-7cab85af0247dad3d54dee50dc9d12524b304d02.zip |
It's not an error if a station exists but not departures are found.
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: |