Minor language update

This commit is contained in:
Miroslav Stampar 2018-12-03 22:59:46 +01:00
parent 0ce2128a9b
commit 536d9a597e
2 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@ def errorUse(expression, dump=False):
stopLimit = int(count) stopLimit = int(count)
infoMsg = "used SQL query returns " infoMsg = "used SQL query returns "
infoMsg += "%d entries" % stopLimit infoMsg += "%d %s" % (stopLimit, "entries" if stopLimit > 1 else "entry")
logger.info(infoMsg) logger.info(infoMsg)
elif count and not count.isdigit(): elif count and not count.isdigit():

View File

@ -258,7 +258,7 @@ def unionUse(expression, unpack=True, dump=False):
stopLimit = int(count) stopLimit = int(count)
infoMsg = "used SQL query returns " infoMsg = "used SQL query returns "
infoMsg += "%d entries" % stopLimit infoMsg += "%d %s" % (stopLimit, "entries" if stopLimit > 1 else "entry")
logger.info(infoMsg) logger.info(infoMsg)
elif count and (not isinstance(count, basestring) or not count.isdigit()): elif count and (not isinstance(count, basestring) or not count.isdigit()):