Add 'Owner' filter
This commit is contained in:
parent
bf715d90fd
commit
64022d7bc7
|
@ -116,6 +116,10 @@ class FilterManager(component.Component):
|
|||
|
||||
self.register_filter("tracker_host", tracker_error_filter)
|
||||
|
||||
def _init_users_tree():
|
||||
return {"": 0}
|
||||
self.register_tree_field("owner", _init_users_tree)
|
||||
|
||||
def filter_torrent_ids(self, filter_dict):
|
||||
"""
|
||||
returns a list of torrent_id's matching filter_dict.
|
||||
|
|
|
@ -60,7 +60,8 @@ STATE_PIX = {
|
|||
TRANSLATE = {
|
||||
"state": "States",
|
||||
"tracker_host": "Trackers",
|
||||
"label": "Labels"
|
||||
"label": "Labels",
|
||||
"owner": "Owner"
|
||||
}
|
||||
|
||||
FILTER_COLUMN = 5
|
||||
|
|
Loading…
Reference in New Issue