Change the rules for top datasets
@@ -95,13 +95,12 @@
# Work out which month to show, based on query params of the first item
c.month = request.params.get('month', c.months if c.months else '')
c.month_desc = ''.join([m for m in c.months if m==c.month])
+# and not url like '/publisher/%%'
connection = model.Session.connection()
q = """
select department_id, sum(pageviews::int) views, sum(visitors::int) visits
where department_id <> ''
- and not url like '/publisher/%%'
group by department_id order by views desc limit 20;
@@ -8,6 +8,7 @@
<li class="widget-container boxed widget_text">
+ <p>The table shows the top 20 publishers as recorded by page views of datasets owned by that publisher, and the number of visits to each publisher's home page.</p>