Commits

Anonymous committed acaa60d

fix a few offset/naming mistakes

Comments (0)

Files changed (1)

         q = urllib.quote(quality[qid].encode('utf-8'))
         i = urllib.quote(importance[iid].encode('utf-8'))
         # 6 columns per row
-        index = 6*(qid + 1) + (iid + 1)
+        index = 6*qid + (iid + 1)
         if nb:
             url = URLbase % (self.prefix, q, self.prefix, i)
             url = url.replace(' ', '%20')
         pywikibot.warning(u're buggy? %s / %s' % (project, req.title(asLink=True)))
         continue
 
-    pywikibot.output(u'Treating project %s...' % project)
+    pywikibot.output(u'Processing project %s...' % project)
     s = rePre.search(text)
     prefix = s.group(1).strip()
     s = reType.search(text)
         # perform intersections for center of the table
         for qid, qual in enumerate(quality):
             for iid, imp in enumerate(importance):
-                inter = len(artByCat[av].intersection(artByCat[imp]))
+                inter = len(artByCat[qual].intersection(artByCat[imp]))
                 results[project].grid(qid, iid, inter)
 
 ### This is unfinished/untested feature "history" of evaluations