summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2012-12-10 15:48:33 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2012-12-10 15:48:38 +0000
commit3ca886ac7ad5e7f3ffcf43b9a50ccae2a1e196ad (patch)
treefd80df98b6ae9e4c8cb98f9f99711712d6500ae3
parent74208c27f8bbd03045ea74f9f9f136372ea08444 (diff)
downloaddeluge-3ca886ac7a.zip
deluge-3ca886ac7a.tar.gz
deluge-3ca886ac7a.tar.bz2
Fix #2085 : WebUI: Does not show torrents in sidebar for categories other than 'All'
unicode value in filter_dict would not be converted into a list
-rw-r--r--deluge/core/filtermanager.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/deluge/core/filtermanager.py b/deluge/core/filtermanager.py
index d806025..966bbe4 100644
--- a/deluge/core/filtermanager.py
+++ b/deluge/core/filtermanager.py
@@ -126,9 +126,8 @@ class FilterManager(component.Component):
#sanitize input: filter-value must be a list of strings
for key, value in filter_dict.items():
- if isinstance(value, str):
- filter_dict[key] = [value]
-
+ if not isinstance(value, list):
+ filter_dict[key] = [value]
if "id" in filter_dict: #optimized filter for id:
torrent_ids = list(filter_dict["id"])