diff options
Diffstat (limited to 'bvggrabber/api/scheduleddeparture.py')
-rw-r--r-- | bvggrabber/api/scheduleddeparture.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bvggrabber/api/scheduleddeparture.py b/bvggrabber/api/scheduleddeparture.py index e144d58..c001f55 100644 --- a/bvggrabber/api/scheduleddeparture.py +++ b/bvggrabber/api/scheduleddeparture.py @@ -5,9 +5,9 @@ import datetime from bs4 import BeautifulSoup -from bvggrabber.api import QueryApi, Departure, Response +from bvggrabber.api import QueryApi, Departure, Response, timeformat -from bvggrabber.utils.format import dateformat, int2bin, timeformat +from bvggrabber.utils.format import dateformat, int2bin SCHEDULED_API_ENDPOINT = 'http://mobil.bvg.de/Fahrinfo/bin/stboard.bin/dox' @@ -75,7 +75,7 @@ class ScheduledDepartureQueryApi(QueryApi): when=tds[0].text.strip(), line=tds[1].text.strip()) departures.append(dep) - return Response(True, departures) + return Response(True, self.station, departures) else: try: response.raise_for_status() |