Minor tweaks
--- a/ckanext/ga_report/controller.py
+++ b/ckanext/ga_report/controller.py
@@ -223,9 +223,7 @@
continue
data[r] += int(entry.value)
- for k,v in data.iteritems():
- c.downloads.append((k,v))
-
+ c.downloads = [(k,v,) for k,v in data.iteritems()]
c.downloads = sorted(c.downloads, key=operator.itemgetter(1), reverse=True)
return render('ga_report/site/downloads.html')
--- a/ckanext/ga_report/download_analytics.py
+++ b/ckanext/ga_report/download_analytics.py
@@ -307,7 +307,7 @@
if not result_data:
# We may not have data for this time period, so we need to bail
# early.
- log.info("There is no downloads data for this time period")
+ log.info("There is no download data for this time period")
return
# [[url, count], [url],count]