changeset 579:4a0f2f294ea2

browser_side (blogs): massive insertion display the actual number of blogs being inserted
author souliane <souliane@mailoo.org>
date Sun, 19 Oct 2014 02:45:18 +0200
parents 668bb04e9708
children 79fbc20c786b
files src/browser/sat_browser/panels.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/sat_browser/panels.py	Sat Oct 18 23:42:13 2014 +0200
+++ b/src/browser/sat_browser/panels.py	Sun Oct 19 02:45:18 2014 +0200
@@ -804,7 +804,8 @@
         """Insert several microblogs at once
         @param mblogs: dictionary of microblogs, as the result of getMassiveLastGroupBlogs
         """
-        log.debug("Massive insertion of %d microblogs" % len(mblogs))
+        count = sum([len(value) for value in mblogs.values()])
+        log.debug("Massive insertion of %d microblogs" % count)
         for publisher in mblogs:
             log.debug("adding blogs for [%s]" % publisher)
             for mblog in mblogs[publisher]: