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:
Calum Lind 2012-10-12 23:48:36 +01:00
parent aa969fd830
commit a64fe05890
1 changed files with 2 additions and 2 deletions

View File

@ -130,8 +130,8 @@ class FilterManager(component.Component):
filter_dict[key] = [value] filter_dict[key] = [value]
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()