fawkesley / train-bot-uk

@TrainBotUK
https://twitter.com/TrainBotUK
MIT License
1 stars 0 forks source link

Trainbot gave me a train in the past #13

Closed zarino closed 10 years ago

zarino commented 10 years ago

screen shot 2014-01-29 at 17 16 30

fawkesley commented 10 years ago

Might be lack of NTP. Also possibly should add a couple of minutes to "now" in the request.

zarino commented 10 years ago

If I turned on geolocation in my twitter client, could you add a delay based on how long it would take me to walk to the station ;-)

zarino commented 10 years ago

I'd pay for it ;-)

fawkesley commented 10 years ago

Regression!

ERROR:root:search_trains() got an unexpected keyword argument 'when'
Traceback (most recent call last):
  File "/home/paul/repo/train-times-tweeter/train_bot_uk/train_bot_uk.py", line 51, in run
    response = make_response_message(message)
  File "/home/paul/repo/train-times-tweeter/train_bot_uk/train_bot_uk.py", line 100, in make_response_message
    return parser.reply(**response_params)
  File "/home/paul/repo/train-times-tweeter/train_bot_uk/responders/journey_responder.py", line 30, in reply
    when=datetime.datetime.now() + datetime.timedelta(minutes=5))
TypeError: search_trains() got an unexpected keyword argument 'when'
fawkesley commented 10 years ago

Closed by https://github.com/paulfurley/train-bot-uk/pull/34