Skip to content

Commit

Permalink
Merge pull request #75 from vrk-kpa/AV-1703_2.9-compatibility-fixes
Browse files Browse the repository at this point in the history
ckan 2.9 compatibility fixes
  • Loading branch information
Zharktas authored Sep 30, 2022
2 parents 8dad5de + a277681 commit 1731b59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/qa/plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion ckanext/qa/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 1731b59

Please sign in to comment.