From 61ff7e0dee4e8f13463667b6e8eed1ad76215585 Mon Sep 17 00:00:00 2001 From: Markus Holtermann Date: Fri, 25 Jan 2013 19:46:45 +0100 Subject: Fix encoding issues --- bvggrabber/api/actualdeparture.py | 2 +- bvggrabber/api/scheduleddeparture.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bvggrabber/api') 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()) -- cgit v1.2.3