diff options
author | Markus Holtermann <info@markusholtermann.eu> | 2013-01-25 19:46:45 +0100 |
---|---|---|
committer | Markus Holtermann <info@markusholtermann.eu> | 2013-01-25 19:46:45 +0100 |
commit | 61ff7e0dee4e8f13463667b6e8eed1ad76215585 (patch) | |
tree | a709c41198872bdcea595c91ae9e912e035183b5 /bvggrabber/api | |
parent | 47d1ad8ed082c43f1ff3bd157db077d1e494186a (diff) | |
download | bvg-grabber-61ff7e0dee4e8f13463667b6e8eed1ad76215585.tar.gz bvg-grabber-61ff7e0dee4e8f13463667b6e8eed1ad76215585.tar.bz2 bvg-grabber-61ff7e0dee4e8f13463667b6e8eed1ad76215585.zip |
Fix encoding issues
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 699e8aa..7cdac17 100644 --- a/bvggrabber/api/actualdeparture.py +++ b/bvggrabber/api/actualdeparture.py @@ -42,7 +42,7 @@ class ActualDepartureQueryApi(QueryApi): departures = [] for row in rows: tds = row.find_all('td') - dep = Departure(start=self.station, + dep = Departure(start=self.station_enc, end=tds[2].text.strip(), when=tds[0].text.strip(), line=tds[1].text.strip()) diff --git a/bvggrabber/api/scheduleddeparture.py b/bvggrabber/api/scheduleddeparture.py index d2c46a3..093d248 100644 --- a/bvggrabber/api/scheduleddeparture.py +++ b/bvggrabber/api/scheduleddeparture.py @@ -60,7 +60,7 @@ class ScheduledDepartureQueryApi(QueryApi): departures = [] for row in rows: tds = row.find_all('td') - dep = Departure(start=self.station, + dep = Departure(start=self.station_enc, end=tds[2].text.strip(), when=tds[0].text.strip(), line=tds[1].text.strip()) |