From 4e48aeb63a4929e1a6be86ada68c4f3bc040123f Mon Sep 17 00:00:00 2001 From: Gernot Hillier Date: Sat, 9 Mar 2024 08:43:38 +0100 Subject: [PATCH] fix: missing step 1 in config_connect() The "Connection to PSA" page was not showing step 1 with the link to Opel login page due to a type error. As parse_qs() returns a list, we have to use first element. Fixes #808 --- psa_car_controller/web/view/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psa_car_controller/web/view/views.py b/psa_car_controller/web/view/views.py index 7ccdad24..cf4db3cd 100644 --- a/psa_car_controller/web/view/views.py +++ b/psa_car_controller/web/view/views.py @@ -77,7 +77,7 @@ def display_page(pathname, search): elif pathname == "/config_login": page = config_layout("login") elif pathname == "/config_connect": - page = get_oauth_config_layout(query_params["url"]) + page = get_oauth_config_layout(query_params["url"][0]) elif pathname == "/log": page = log_layout() elif not APP.is_good: