From a48a4ead373bb7a233a58578648f073ea823f702 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Thu, 30 May 2024 16:05:46 +0200 Subject: [PATCH] Change alphabetically sort list at edit show/Exclude global ignore/require words. --- CHANGES.md | 1 + gui/slick/interfaces/default/editShow.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 62e06dca..ba7b669c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -22,6 +22,7 @@ * Update urllib3 2.0.7 (56f01e0) to 2.2.1 (54d6edf) * Change growl notifier location for Apprise update refactor * Change systemd remove py2 and add basic hardening options +* Change alphabetically sort list at edit show/Exclude global ignore/require words ### 3.31.0 (2024-06-05 08:00:00 UTC) diff --git a/gui/slick/interfaces/default/editShow.tmpl b/gui/slick/interfaces/default/editShow.tmpl index c9733cab..a099db88 100644 --- a/gui/slick/interfaces/default/editShow.tmpl +++ b/gui/slick/interfaces/default/editShow.tmpl @@ -166,7 +166,7 @@ #set $options = '' #set $selected = ' selected=\"selected\"' #set $num_selected = 0 - #for $gw in $sickgear.IGNORE_WORDS: + #for $gw in sorted($sickgear.IGNORE_WORDS, key=$str.lower): #set $sel_html = '' #if $gw in $show_obj.rls_global_exclude_ignore #set $sel_html = $selected @@ -202,7 +202,7 @@ #set $options = '' #set $selected = ' selected=\"selected\"' #set $num_selected = 0 - #for $gw in $sickgear.REQUIRE_WORDS: + #for $gw in sorted($sickgear.REQUIRE_WORDS, key=$str.lower): #set $sel_html = '' #if $gw in $show_obj.rls_global_exclude_require #set $sel_html = $selected