Fixed bug when station containing "to" was treated as separator

This commit is contained in:
JuliusFreudenberger 2019-10-16 12:35:00 +02:00
parent 78c337a8eb
commit 274c5b1b48

2
bot.py
View file

@ -28,7 +28,7 @@ class Query:
separator_index = request_tmp.find(" to ")
if separator_index != -1:
self.input = request_tmp[:separator_index - 1].strip()
self.destination = request_tmp[separator_index + 2:].strip()
self.destination = request_tmp[separator_index + 4:].strip()
else:
self.input = request_tmp
if args[0].isdigit():