mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-03 16:45:33 +00:00
Ensure torrent_ids is a list
If torrent_ids is created from filter_dict it is a tuple. This results in an error when attempting to remove a torrent_id from torrent_ids later on in 'leftover filter args' and 'filter_state_active()'.
This commit is contained in:
parent
aa969fd830
commit
a64fe05890
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ class FilterManager(component.Component):
|
||||||
|
|
||||||
|
|
||||||
if "id" in filter_dict: #optimized filter for id:
|
if "id" in filter_dict: #optimized filter for id:
|
||||||
torrent_ids = filter_dict["id"]
|
torrent_ids = list(filter_dict["id"])
|
||||||
del filter_dict["id"]
|
del filter_dict["id"]
|
||||||
else:
|
else:
|
||||||
torrent_ids = self.torrents.get_torrent_list()
|
torrent_ids = self.torrents.get_torrent_list()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue