From 10ebf9b0b0a75b30e4ea7526a6f44619b91dfa60 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 21 Feb 2017 10:35:51 +0000 Subject: [PATCH] Fix mistakes in commit 42ba908 commit accidentally pushed before being tested --- deluge/core/torrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 15d3bdea7..1f78055d9 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -586,7 +586,7 @@ class Torrent(object): if not self.options["file_priorities"]: # Ensure file_priorities option is populated. - set_file_priorities([]) + self.set_file_priorities([]) return self.options["file_priorities"] @@ -686,7 +686,6 @@ class Torrent(object): "compact": self.options["compact_allocation"], "distributed_copies": distributed_copies, "download_payload_rate": self.status.download_payload_rate, - "file_priorities": self.get_file_priorities, "hash": self.torrent_id, "is_auto_managed": self.options["auto_managed"], "is_finished": self.is_finished, @@ -785,6 +784,7 @@ class Torrent(object): fns = { "comment": ti_comment, "eta": self.get_eta, + "file_priorities": self.get_file_priorities, "file_progress": self.get_file_progress, "files": self.get_files, "is_seed": self.handle.is_seed,