Logical issue with how I'm used to dealing with selecting list indexes.

This commit is contained in:
Anton Hvornum 2020-10-18 12:51:33 +02:00
parent 3686842587
commit d95b915681
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def generic_select(options, input_text="Select one of the above by index or abso
selected_option = input(input_text)
if selected_option.isdigit():
selected_option = options[int(selected_option)-1]
selected_option = options[int(selected_option)]
elif selected_option in options:
pass # We gave a correct absolute value
else: