spansh.py: fixed oldstation
search results for partial system name
fixes #3
This commit is contained in:
parent
79bc2d49d4
commit
0179369fc1
1 changed files with 7 additions and 4 deletions
|
@ -80,6 +80,9 @@ def getOldStationsInSystem(system):
|
||||||
|
|
||||||
ret = ""
|
ret = ""
|
||||||
for station in json["results"]:
|
for station in json["results"]:
|
||||||
|
# systems including the given name as a word will also trigger;
|
||||||
|
# looking for e.g. “Mari” will also give you stuff in “Mac Mari”!
|
||||||
|
if station["system_name"] == system:
|
||||||
if args.short:
|
if args.short:
|
||||||
ret += "{}\n".format(station["name"])
|
ret += "{}\n".format(station["name"])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue