From c05c69928bc0b2444ad74ea6c3e045eca46f4ba4 Mon Sep 17 00:00:00 2001 From: Ivy Bowman Date: Tue, 30 Aug 2022 15:43:54 -0400 Subject: [PATCH] Fixed Value Error on select box use. --- autobooks/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autobooks/utils.py b/autobooks/utils.py index 376fd60..bb4b414 100644 --- a/autobooks/utils.py +++ b/autobooks/utils.py @@ -79,7 +79,7 @@ def craft_booklist(loans_page): def query_login_form(form_list, select): x = 0 if len(form_list) != 1: - for form, index in form_list: + for index, form in enumerate(form_list): if select in form['displayName']: - x = form_list.index(form) + x = index return form_list[x]