Fix filtering on trackers
This commit is contained in:
parent
9b0306d5b5
commit
75efde8439
|
@ -107,7 +107,10 @@ class FilterManager(component.Component):
|
|||
return torrent_ids
|
||||
|
||||
#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"])
|
||||
|
||||
if "state" in filter_dict and "Active" in filter_dict["state"]:
|
||||
filter_dict["state"].remove("Active")
|
||||
if not filter_dict["state"]:
|
||||
|
|
Loading…
Reference in New Issue