From 6a71307e5affd7653db04d9943c77cccf30c3886 Mon Sep 17 00:00:00 2001 From: Christian Struck Date: Thu, 31 Jan 2013 15:40:58 +0100 Subject: added function dateformat and renamed function hourformat to timeformat and removed wrong enc in actualdeparture --- bvggrabber/api/scheduleddeparture.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bvggrabber/api/scheduleddeparture.py') diff --git a/bvggrabber/api/scheduleddeparture.py b/bvggrabber/api/scheduleddeparture.py index 5387057..61c4b57 100644 --- a/bvggrabber/api/scheduleddeparture.py +++ b/bvggrabber/api/scheduleddeparture.py @@ -43,8 +43,8 @@ class ScheduledDepartureQueryApi(QueryApi): def call(self): params = {'input': self.station_enc, - 'time': hourformat(datetime.datetime.now()), - 'date': datetime.datetime.now().strftime('%d.%m.%Y'), + 'time': timeformat(datetime.datetime.now()), + 'date': dateformat(datetime.datetime.now()), 'productsFilter': self.vehicles, 'maxJourneys': self.limit, 'start': 'yes'} -- cgit v1.2.3