From: Ross Jones Date: Tue, 04 Dec 2012 18:59:48 +0000 Subject: Modified model for delete() to check != 'All' instead of 'all' X-Git-Url: http://maxious.lambdacomplex.org/git/?p=ckanext-ga-report.git&a=commitdiff&h=165d8274249a2388e135f35ddaea368362fd0827 --- Modified model for delete() to check != 'All' instead of 'all' --- --- a/ckanext/ga_report/ga_model.py +++ b/ckanext/ga_report/ga_model.py @@ -343,7 +343,7 @@ ''' for object_type in (GA_Url, GA_Stat, GA_Publisher, GA_ReferralStat): q = model.Session.query(object_type) - if period_name != 'all': + if period_name != 'All': q = q.filter_by(period_name=period_name) q.delete() model.Session.commit() --- a/ckanext/ga_report/templates/ga_report/notes.html +++ b/ckanext/ga_report/templates/ga_report/notes.html @@ -5,7 +5,6 @@
  • Notes

    -