Add missing import, explains why it was broken before
Add missing import, explains why it was broken before

--- a/ckanext/ga_report/download_analytics.py
+++ b/ckanext/ga_report/download_analytics.py
@@ -266,6 +266,7 @@
 
         log.info("Trying to refresh our OAuth token")
         try:
+            from ga_auth import init_service
             self.token, svc = init_service(ga_token_filepath, None)
             log.info("OAuth token refreshed")
         except Exception, auth_exception: