summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsand <daniel@spatof.org>2013-05-13 17:20:39 (GMT)
committer sand <daniel@spatof.org>2013-05-13 17:20:39 (GMT)
commit3d629450c44f0910409ce5cdb07b593e6b0cdb58 (patch)
tree2a272176a8555fbbf483ed938d4c44b50ca9b53f
parenta415c2c1a1d92f9d97183ed86fd07ddc918dd2c7 (diff)
quotes: fix per numero di risultati ricerca
-rw-r--r--pinolo/plugins/quotes2.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pinolo/plugins/quotes2.py b/pinolo/plugins/quotes2.py
index a853b30..d46551b 100644
--- a/pinolo/plugins/quotes2.py
+++ b/pinolo/plugins/quotes2.py
@@ -132,8 +132,11 @@ class QuotesPlugin(Plugin):
else:
low = results.estimated_min_length()
high = results.estimated_length()
- event.reply(u"Ho trovato %d tra circa %d risultati" % (found, low))
-
+ if low == high:
+ event.reply(u"Ho trovato %d tra circa %d risultati" % (found, low))
+ else:
+ event.reply(u"Ho trovato %d tra circa %d/%d risultati" % (found, low, high))
+
for result in results:
results_id.append(result['id'])