mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
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
This commit is contained in:
parent
4520fdd58b
commit
6c07b7378c
1 changed files with 2 additions and 3 deletions
|
@ -153,10 +153,9 @@ class FilterManager(component.Component):
|
||||||
|
|
||||||
#sanitize input: filter-value must be a list of strings
|
#sanitize input: filter-value must be a list of strings
|
||||||
for key, value in filter_dict.items():
|
for key, value in filter_dict.items():
|
||||||
if isinstance(value, str):
|
if not isinstance(value, list):
|
||||||
filter_dict[key] = [value]
|
filter_dict[key] = [value]
|
||||||
|
|
||||||
|
|
||||||
if "id"in filter_dict: #optimized filter for id:
|
if "id"in filter_dict: #optimized filter for id:
|
||||||
torrent_ids = list(filter_dict["id"])
|
torrent_ids = list(filter_dict["id"])
|
||||||
del filter_dict["id"]
|
del filter_dict["id"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue