From 9ad59d5f482884e83351160ef82552c6a23e89a7 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Fri, 19 Feb 2010 23:48:54 +0000 Subject: [PATCH] fix #1148, saving execute commands, tuples can't be assigned to stupid me --- deluge/plugins/execute/execute/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deluge/plugins/execute/execute/core.py b/deluge/plugins/execute/execute/core.py index 96565207d..5ca3496b9 100644 --- a/deluge/plugins/execute/execute/core.py +++ b/deluge/plugins/execute/execute/core.py @@ -127,8 +127,7 @@ class Core(CorePluginBase): @export def save_command(self, command_id, event, cmd): - for command in self.config["commands"]: + for i, command in enumerate(self.config["commands"]): if command[EXECUTE_ID] == command_id: - command[EXECUTE_EVENT] = event - command[EXECUTE_COMMAND] = cmd + self.config["commands"][i] = (command_id, event, cmd) break