Skip to content
Snippets Groups Projects
Commit 68a2a97e authored by Anne-Liza Bruggeman's avatar Anne-Liza Bruggeman
Browse files

Changed the user_prompt_select_options() such that the options are counted...

Changed the user_prompt_select_options() such that the options are counted starting from one instead of zero


Former-commit-id: bea2615d3e0663a8738ab3b3aa34d3e9d983d53d
parent 83e8bc0e
No related branches found
No related tags found
No related merge requests found
Pipeline #193067 canceled
......@@ -119,7 +119,7 @@ def user_prompt_select_options(*args, **kwargs):
# check input for proper input; if no input, function is exited
if selected_idxs:
try:
selected_idxs = [int(elem) for elem in selected_idxs]
selected_idxs = [int(elem)-1 for elem in selected_idxs]
except ValueError:
print("\nOnly integers are allowed!")
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment