summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-12-23 15:22:14 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2009-12-23 15:22:14 +0100
commitf1ab2a9437d876e82e5c22fd622b94f60e554be1 (patch)
treeeba6c0b25122cff56c009330f42b4d031c4e38ee /modules
parente71ea224cccc314a35adc9c3f6bc6408094ff41b (diff)
Fixed category number calculation.
Diffstat (limited to 'modules')
-rw-r--r--modules/anidb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/anidb.py b/modules/anidb.py
index c5862e8..5a3633d 100644
--- a/modules/anidb.py
+++ b/modules/anidb.py
@@ -62,7 +62,7 @@ class Module:
catlist = catlist.split(',')
catweight = catweight.split(',')
try:
- catn = max(catweight.index(str(int(catweight[0]-1))), 10)
+ catn = max(catweight.index(str(int(catweight[0])-1)), 10)
except:
catn = 10
rating = float(rating) / 100