[views/startup] drop a duplicate rql query in manage view 3.26
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Thu, 28 Jun 2018 10:17:15 +0200
branch3.26
changeset 12427 8b90e56aa93e
parent 12426 9435e02be793
child 12428 744c66f41e96
[views/startup] drop a duplicate rql query in manage view Counting entities in `nb` is already done above this code, regression introduced by a85db6fa
cubicweb/web/views/startup.py
--- a/cubicweb/web/views/startup.py	Fri Jun 15 17:42:50 2018 +0200
+++ b/cubicweb/web/views/startup.py	Thu Jun 28 10:17:15 2018 +0200
@@ -131,7 +131,6 @@
                 label = display_name(req, etype, 'plural')
             else:
                 label = display_name(req, etype)
-            nb = req.execute('Any COUNT(X) WHERE X is %s' % etype)[0][0]
             url = self._cw.build_url(etype)
             etypelink = u'&#160;<a href="%s">%s</a> (%d)' % (
                 xml_escape(url), label, nb)