Fixed bug when query term was not complete when no destination was given

the last char was cut before
This commit is contained in:
JuliusFreudenberger 2019-10-16 12:36:14 +02:00
parent 274c5b1b48
commit b23a86cd90

4
bot.py
View file

@ -30,11 +30,11 @@ class Query:
self.input = request_tmp[:separator_index - 1].strip()
self.destination = request_tmp[separator_index + 4:].strip()
else:
self.input = request_tmp
self.input = request_tmp.strip()
if args[0].isdigit():
self.station_id = args[0].strip()
else:
self.station_id = search_station(request_tmp[:separator_index].strip())
self.station_id = search_station(input)
def start(update):