From 6c07b7378c82d23b22d9c36aa06e7d8b18e4ccdf Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 10 Dec 2012 15:48:33 +0000 Subject: [PATCH] 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 --- deluge/core/filtermanager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deluge/core/filtermanager.py b/deluge/core/filtermanager.py index 25ae4be1b..b09f39154 100644 --- a/deluge/core/filtermanager.py +++ b/deluge/core/filtermanager.py @@ -153,9 +153,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"])