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'])
|
reply.append("Next departures for station: " + request.json()[0]['stopName'])
|
||||||
printed_departures = 0
|
printed_departures = 0
|
||||||
for station in request.json():
|
for station in request.json():
|
||||||
if station['direction'].casefold().find(query.destination) != -1 or station['direction'].find(
|
if station['direction'].casefold().find(query.destination.casefold()) != -1 :
|
||||||
query.destination) != -1:
|
|
||||||
if query.line == '' or (query.line != -1 and station['number'] == query.line):
|
if query.line == '' or (query.line != -1 and station['number'] == query.line):
|
||||||
reply.append(
|
reply.append(
|
||||||
"Line " + station['number'] + " to \"" + station['direction'] + "\" at "
|
"Line " + station['number'] + " to \"" + station['direction'] + "\" at "
|
||||||
|
|
Loading…
Reference in a new issue