mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-11 19:08:40 +00:00
Fix filtering on trackers
This commit is contained in:
parent
9b0306d5b5
commit
75efde8439
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue