Commits

Victor Garcia  committed 5a4dca5

Add the number of entries with pages to tally.

  • Participants
  • Parent commits 883aaf0

Comments (0)

Files changed (2)

 
  * [[CCompatible | C extensions known to work]]
 
-* [[Contributing]]
+ * [[Contributing]]
 
  * [[Discussion]]
 
 
 
 def tally(parsed):
-    compat = {'y': 0, 'n': 0, '?': 0}
+    compat = {'y': 0, 'n': 0, '?': 0, 'info': 0}
     for dummy, cat in parsed.items():
         for dummy, entry in cat.items():
             compat[entry['compatible']] += 1
-    restpl = '%s entries: %s compatible, %s incompatible, %s unknown.'
-    values = (sum(compat.values()), compat['y'], compat['n'], compat['?'])
+            if entry['hasinfo']:
+                compat['info'] += 1
+    restpl = ('%s entries: %s compatible, %s incompatible, %s unknown,'
+              ' %s with pages.')
+    values = (sum(compat.values()) - compat['info'], compat['y'], compat['n'],
+              compat['?'], compat['info'])
     return restpl % values
 
 def getnames(parsed):