From: Ross Jones Date: Thu, 15 Nov 2012 12:41:34 +0000 Subject: Make sure that the url normalization for social info takes the correct data X-Git-Url: http://maxious.lambdacomplex.org/git/?p=ckanext-ga-report.git&a=commitdiff&h=507483b2f7deed3d0b896e32b04fce81859d1146 --- Make sure that the url normalization for social info takes the correct data --- --- a/ckanext/ga_report/download_analytics.py +++ b/ckanext/ga_report/download_analytics.py @@ -153,7 +153,8 @@ data = collections.defaultdict(list) rows = results.get('rows',[]) for row in rows: - data[_normalize_url(row[0])].append( (row[1], int(row[2]),) ) + url = _normalize_url('http:/' + row[0]) + data[url].append( (row[1], int(row[2]),) ) ga_model.update_social(period_name, data)