Minor tweak to see what is going on with delete()
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()