summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index f910626..11ff7b5 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1766,6 +1766,8 @@ def action_mode():
'memtest': 'Memory Test (memtest)',
}
+ excluded_modes = ['00unknown', '10']
+
most_used_mode = max(modes_set, key=lambda m: len(modes_set[m]))
available_modes = []
if most_used_mode in r.json()['modes']:
@@ -1773,7 +1775,7 @@ def action_mode():
available_modes.append(most_used_t)
for mode in r.json()['modes']:
- if mode != most_used_mode:
+ if mode != most_used_mode and mode not in excluded_modes:
available_modes.append((mode, mode_descriptions.get(mode, mode)))
if not available_modes: