From: Ross Jones Date: Thu, 25 Oct 2012 11:24:28 +0000 Subject: Uncommenting needed code X-Git-Url: https://maxious.lambdacomplex.org/git/?p=ckanext-ga-report.git&a=commitdiff&h=76bec35f5638e09397e2f1e0bf251c197d6d1e6b --- Uncommenting needed code --- --- a/ckanext/ga_report/download_analytics.py +++ b/ckanext/ga_report/download_analytics.py @@ -85,7 +85,7 @@ self.get_full_period_name(period_name, period_complete_day), start_date.strftime('%Y %m %d'), end_date.strftime('%Y %m %d')) - """ + data = self.download(start_date, end_date, '~/dataset/[a-z0-9-_]+') log.info('Storing Dataset Analytics for period "%s"', self.get_full_period_name(period_name, period_complete_day)) @@ -95,7 +95,7 @@ log.info('Storing Publisher Analytics for period "%s"', self.get_full_period_name(period_name, period_complete_day)) self.store(period_name, period_complete_day, data,) - """ + ga_model.update_publisher_stats(period_name) # about 30 seconds. self.sitewide_stats( period_name ) --- a/ckanext/ga_report/templates/ga_report/site/index.html +++ b/ckanext/ga_report/templates/ga_report/site/index.html @@ -8,6 +8,8 @@
  • Statistics

    +

    It is possible to export the analytics data as a CSV file, which contains all of the information for ${c.month_desc}

    +
  • @@ -24,8 +26,6 @@ - -

    Export data as CSV