summaryrefslogtreecommitdiff
path: root/bvggrabber/api/actualdeparture.py
diff options
context:
space:
mode:
Diffstat (limited to 'bvggrabber/api/actualdeparture.py')
-rw-r--r--bvggrabber/api/actualdeparture.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bvggrabber/api/actualdeparture.py b/bvggrabber/api/actualdeparture.py
index e7c084b..00b6d1d 100644
--- a/bvggrabber/api/actualdeparture.py
+++ b/bvggrabber/api/actualdeparture.py
@@ -51,12 +51,13 @@ class ActualDepartureQueryApi(QueryApi):
departures = []
for row in rows:
if row.parent.name == 'tbody':
+ stro = row.find_all("strong")
td = row.find_all('td')
if td:
dep = Departure(start=self.station,
end=td[2].text.strip(),
when=td[0].text.strip(),
- line=td[1].text.strip())
+ line=stro[1].text.strip())
departures.append(dep)
return Response(True, self.station, departures)
else: