yeah that wasn't it

This commit is contained in:
Christopher Teutsch 2019-05-19 21:36:29 +02:00
parent 8e6a359396
commit 081b23e702
Signed by: iwonder
GPG Key ID: 0EE33D788D50130D

View File

@ -65,9 +65,9 @@ def get_lines(station_id: int) -> List[str]:
if page:
print("Paging in batches of 20 results.")
for ptr in range(len(results)):
print(str(ptr) + ". " + results[ptr]['name'])
if (ptr % 20 == 0 or ptr == len(results) - 1) and ptr != 0:
choices += input("Please input your choices as a space-separated list (e.g. '0 2 7 15'):\n") + ' '
print(str(ptr) + ". " + results[ptr]['name'])
else:
for ptr in range(len(results)):
print(str(ptr) + ". " + results[ptr]['name'])