ability to set an arrival or a departure time
This commit is contained in:
parent
c719865e7a
commit
c284a24842
5 changed files with 37 additions and 7 deletions
|
|
@ -49,7 +49,7 @@ class DeparturesPage(BasePage):
|
|||
try :
|
||||
time = datetime.datetime.combine(datetime.date.today(), datetime.time(*[int(x) for x in time.split(':')]))
|
||||
except ValueError:
|
||||
self.logger.warning('Unable to parse datetime')
|
||||
self.logger.warning('Unable to parse datetime "%s"' % time)
|
||||
|
||||
yield {'type': to_unicode(code_mission),
|
||||
'time': time,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue