[views/startup] drop a duplicate rql query in manage view
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Thu, 28 Jun 2018 10:17:15 +0200
changeset 12328 b570d3094e32
parent 12327 58f05ffafeca
child 12338 b5533de552c4
[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	Tue Jun 19 09:13:40 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)