Properly separate line choices

This commit is contained in:
Christopher Teutsch 2019-05-19 18:14:52 +02:00
parent a49f28839b
commit 9b0bbc66ea
Signed by: iwonder
GPG Key ID: 0EE33D788D50130D

View File

@ -67,7 +67,7 @@ def get_lines(station_id: int) -> List[str]:
results_displayed = 0
for ptr in range(len(results)):
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")
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)):