Module: deluge
Branch: master
Commit: ca86aa5714f48f857ea779fabc9dae231dc93bbb

Author: Calum Lind <[email protected]>
Date:   Fri Jul  8 13:22:59 2011 +0100

Fixes keyerror with existing file priorities set to High

---

 deluge/common.py                      |    1 +
 deluge/ui/web/js/deluge-all/Deluge.js |   10 ++++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/deluge/common.py b/deluge/common.py
index 763f03c..b246e66 100644
--- a/deluge/common.py
+++ b/deluge/common.py
@@ -104,6 +104,7 @@ TORRENT_STATE = [
 FILE_PRIORITY = {
     0: "Do Not Download",
     1: "Normal Priority",
+    2: "High Priority",
     5: "High Priority",
     7: "Highest Priority",
     "Do Not Download": 0,
diff --git a/deluge/ui/web/js/deluge-all/Deluge.js 
b/deluge/ui/web/js/deluge-all/Deluge.js
index 2e9c0fd..5142944 100644
--- a/deluge/ui/web/js/deluge-all/Deluge.js
+++ b/deluge/ui/web/js/deluge-all/Deluge.js
@@ -162,12 +162,13 @@ FILE_PRIORITY = {
     0: 'Do Not Download',
     1: 'Normal Priority',
     2: 'High Priority',
-    5: 'Highest Priority',
+    5: 'High Priority',
+    7: 'Highest Priority',
     'Mixed': 9,
     'Do Not Download': 0,
     'Normal Priority': 1,
-    'High Priority': 2,
-    'Highest Priority': 5
+    'High Priority': 5,
+    'Highest Priority': 7
 }
 
 FILE_PRIORITY_CSS = {
@@ -175,5 +176,6 @@ FILE_PRIORITY_CSS = {
     0: 'x-no-download',
     1: 'x-normal-download',
     2: 'x-high-download',
-    5: 'x-highest-download'
+    5: 'x-high-download',
+    7: 'x-highest-download'
 }

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to