summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2011-07-08 13:22:59 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2011-07-08 23:34:02 +0100
commitca86aa5714f48f857ea779fabc9dae231dc93bbb (patch)
tree53518636ee4c40491c0a5b9ccbe3f072360860c4
parentfc7fa94319eda4436d15d7f0acc668899b7b60b5 (diff)
downloaddeluge-ca86aa5714f48f857ea779fabc9dae231dc93bbb.tar.gz
deluge-ca86aa5714f48f857ea779fabc9dae231dc93bbb.tar.bz2
deluge-ca86aa5714f48f857ea779fabc9dae231dc93bbb.zip
Fixes keyerror with existing file priorities set to High
-rw-r--r--deluge/common.py1
-rw-r--r--deluge/ui/web/js/deluge-all/Deluge.js10
2 files changed, 7 insertions, 4 deletions
diff --git a/deluge/common.py b/deluge/common.py
index 763f03c8c..b246e6675 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 2e9c0fded..514294408 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'
}