summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Robinson <joe@mumsnet.com>2014-09-19 18:25:40 +0100
committerJoe Robinson <joe@mumsnet.com>2014-09-19 18:25:40 +0100
commit39849003414737add90a5f6e6fb3e5f4ff9c46bb (patch)
tree1c5088bbaf59f3a56cbaf7227febe674b05031bd
parent462b32e7c94b5c159a557a71c284df4e18f44253 (diff)
Don't show the n more bit if n is 0
-rwxr-xr-xbladictionary.py4
1 files 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__":