parent
9f19440f9b
commit
3510c87e4d
1 changed files with 1 additions and 2 deletions
3
bot.py
3
bot.py
|
@ -121,8 +121,7 @@ def get_vvs_departures(query):
|
|||
reply.append("Next departures for station: " + request.json()[0]['stopName'])
|
||||
printed_departures = 0
|
||||
for station in request.json():
|
||||
if station['direction'].casefold().find(query.destination) != -1 or station['direction'].find(
|
||||
query.destination) != -1:
|
||||
if station['direction'].casefold().find(query.destination.casefold()) != -1 :
|
||||
if query.line == '' or (query.line != -1 and station['number'] == query.line):
|
||||
reply.append(
|
||||
"Line " + station['number'] + " to \"" + station['direction'] + "\" at "
|
||||
|
|
Loading…
Reference in a new issue