diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-12-23 15:22:14 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-12-23 15:22:14 +0100 |
commit | f1ab2a9437d876e82e5c22fd622b94f60e554be1 (patch) | |
tree | eba6c0b25122cff56c009330f42b4d031c4e38ee /modules | |
parent | e71ea224cccc314a35adc9c3f6bc6408094ff41b (diff) |
Fixed category number calculation.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/anidb.py | 2 |
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 |