From: Ross Jones Date: Thu, 06 Dec 2012 16:24:04 +0000 Subject: Minor tweak to see what is going on with delete() X-Git-Url: http://maxious.lambdacomplex.org/git/?p=ckanext-ga-report.git&a=commitdiff&h=e9cfbdc6e83e8f96e0fa04d68955fb0a971f369b --- Minor tweak to see what is going on with delete() --- --- a/ckanext/ga_report/ga_model.py +++ b/ckanext/ga_report/ga_model.py @@ -170,6 +170,11 @@ log.debug("Deleting %d 'All' records" % count) model.Session.query(GA_Url).\ filter(GA_Url.period_name == 'All').delete() + log.debug("Query: %s" % model.Session.query(GA_Url). + filter(GA_Url.period_name == 'All')) + + model.Session.clufhs() + model.Session.commit() model.repo.commit_and_remove()