From c63b388f8122d613d02199821fa55079c0ddf678 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sat, 17 Jun 2023 18:25:12 -0700 Subject: [PATCH] Small linting refactor --- scripts/wk/hw/diags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/wk/hw/diags.py b/scripts/wk/hw/diags.py index 292bff3e..b6b25ebf 100644 --- a/scripts/wk/hw/diags.py +++ b/scripts/wk/hw/diags.py @@ -275,9 +275,9 @@ def build_menu(cli_mode=False, quick_mode=False) -> cli.Menu: # Update default selections for quick mode if necessary if quick_mode: - for name in menu.options: + for name, details in menu.options.items(): # Only select quick option(s) - menu.options[name]['Selected'] = name in MENU_OPTIONS_QUICK + details['Selected'] = name in MENU_OPTIONS_QUICK # Skip CPU tests for TestStations if os.path.exists(cfg.hw.TESTSTATION_FILE):