From f1ab2a9437d876e82e5c22fd622b94f60e554be1 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 23 Dec 2009 15:22:14 +0100 Subject: Fixed category number calculation. --- modules/anidb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3