Skip to content
Snippets Groups Projects
Commit 14109c3b authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Fixed getting openness score

parent 9682b1d8
No related branches found
No related tags found
2 merge requests!41Version 2.0.0,!38Merge py3 into dev
......@@ -405,8 +405,8 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
score = -1
for r in d['resources']:
if 'qa' in r:
i = r['qa'].find('openness_score')
s = int(r['qa'][i+17])
if 'openness_score' in r['qa']:
s = int(r['qa']['openness_score'])
if s > score:
score = s
if score > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment