mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 12:34:43 +00:00
Fix filtering on trackers
This commit is contained in:
parent
9b0306d5b5
commit
75efde8439
@ -107,7 +107,10 @@ class FilterManager(component.Component):
|
|||||||
return torrent_ids
|
return torrent_ids
|
||||||
|
|
||||||
#special purpose: state=Active.
|
#special purpose: state=Active.
|
||||||
|
if "state" in filter_dict:
|
||||||
|
# We need to make sure this is a list for the logic below
|
||||||
filter_dict["state"] = list(filter_dict["state"])
|
filter_dict["state"] = list(filter_dict["state"])
|
||||||
|
|
||||||
if "state" in filter_dict and "Active" in filter_dict["state"]:
|
if "state" in filter_dict and "Active" in filter_dict["state"]:
|
||||||
filter_dict["state"].remove("Active")
|
filter_dict["state"].remove("Active")
|
||||||
if not filter_dict["state"]:
|
if not filter_dict["state"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user