diff options
| author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-10-11 16:22:31 +0200 |
|---|---|---|
| committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-10-11 16:22:31 +0200 |
| commit | 12a004ad3bcc2150dca5ae45c963161e7eedc25c (patch) | |
| tree | 818c6a6b7d8f13eed9ad0ca2a77593caf9a16820 /bvggrabber/api/scheduleddeparture.py | |
| parent | 7664fb26df0c4ba0f03504b55e15022769bab861 (diff) | |
Fix Issue #11 from github
Diffstat (limited to 'bvggrabber/api/scheduleddeparture.py')
| -rw-r--r-- | bvggrabber/api/scheduleddeparture.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bvggrabber/api/scheduleddeparture.py b/bvggrabber/api/scheduleddeparture.py index f316b6e..101f692 100644 --- a/bvggrabber/api/scheduleddeparture.py +++ b/bvggrabber/api/scheduleddeparture.py @@ -70,10 +70,11 @@ class ScheduledDepartureQueryApi(QueryApi): departures = [] for row in rows: tds = row.find_all('td') + stro = row.find_all('strong') dep = Departure(start=self.station, end=tds[2].text.strip(), when=tds[0].text.strip(), - line=tds[1].text.strip()) + line=stro[1].text.strip()) departures.append(dep) return Response(True, self.station, departures) else: |
