diff --git a/ckanext/qa/plugin/__init__.py b/ckanext/qa/plugin/__init__.py index 9023cc37..1102e2e1 100644 --- a/ckanext/qa/plugin/__init__.py +++ b/ckanext/qa/plugin/__init__.py @@ -33,7 +33,7 @@ class QAPlugin(MixinPlugin, p.SingletonPlugin, toolkit.DefaultDatasetForm): # IConfigurer def update_config(self, config): - toolkit.add_template_directory(config, 'templates') + toolkit.add_template_directory(config, '../templates') # IPipe diff --git a/ckanext/qa/reports.py b/ckanext/qa/reports.py index b83a98e0..8379aeca 100644 --- a/ckanext/qa/reports.py +++ b/ckanext/qa/reports.py @@ -72,7 +72,7 @@ def openness_index(include_sub_organizations=False): results = counts table = [] - for org_name, org_counts in results.iteritems(): + for org_name, org_counts in results.items(): if not org_counts['score_counts']: # Let's skip if there are no counts at all. continue total_stars = sum([k*v for k, v in org_counts['score_counts'].items() if k])