Fix filtering on trackers

This commit is contained in:
Andrew Resch 2009-02-04 06:17:09 +00:00
parent 9b0306d5b5
commit 75efde8439
1 changed files with 4 additions and 1 deletions

View File

@ -107,7 +107,10 @@ class FilterManager(component.Component):
return torrent_ids
#special purpose: state=Active.
filter_dict["state"] = list(filter_dict["state"])
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"]: