Show top datasets cross-publisher. Drop-down for the publisher. Browser version numbers filtered on download, so you get this version in the CSV too - for privacy. single_popular_dataset now copes when not much data, and can return the figures so DGU can reskin it in its own repo. Notes about usage stats centralised to notes.html.
[ckanext-ga-report.git] / ckanext / ga_report / controller.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import logging
from ckan.lib.base import BaseController, c, render
import report_model
 
log = logging.getLogger('ckanext.ga-report')
 
class GaReport(BaseController):
    def index(self):
        return render('ga_report/site/index.html')
 
 
class GaPublisherReport(BaseController):
 
    def index(self, id):
        return render('ga_report/publisher/index.html')