From 39849003414737add90a5f6e6fb3e5f4ff9c46bb Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Fri, 19 Sep 2014 18:25:40 +0100 Subject: Don't show the n more bit if n is 0 --- bladictionary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bladictionary.py b/bladictionary.py index ba0383d..03ebb26 100755 --- a/bladictionary.py +++ b/bladictionary.py @@ -7,7 +7,7 @@ import optparse from lxml import etree import sqlite3 -VERSION = "2.1.7b" +VERSION = "2.1.8b" class Definition(object): #ID is relative to the word type, eg noun 1, noun 2, verb 1, verb 2, not to the entire list @@ -392,7 +392,7 @@ def main(): elif all_types and item.word_type is not word_type: num_more+=1 - if suppress_print or all_types: + if (suppress_print or all_types) and num_more > 0: print "(" + str(num_more) + " more)" if __name__ == "__main__": -- cgit v1.2.3