mirror of
https://github.com/logos-storage/deluge.git
synced 2026-01-14 19:13:06 +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
74208c27f8
commit
3ca886ac7a
@ -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"])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user