Skip to content
Snippets Groups Projects
Commit b32bbeb9 authored by chbaeh's avatar chbaeh
Browse files

ODPSH-344

parent ff9f88cf
No related branches found
No related tags found
No related merge requests found
......@@ -18,11 +18,11 @@ log = logging.getLogger(__name__)
def odsh_openness_score_dataset_html(dataset):
score = 0
score = -1
#dataset = json.loads(dataset)
resources = dataset.get('resources')
if resources is None:
return 0
return score
for resource in resources:
r_qa = resource.get('qa')
if r_qa:
......
......@@ -52,7 +52,9 @@
</div>
</h2>
<div class="dataset-stars">
{% if stars>-1%}
{% snippet "qa/stars.html", stars=stars %}
{% endif %}
</div>
{% if h.check_access('package_update', {'id':pkg.id }) %}
{% endif %}
......
......@@ -98,7 +98,9 @@ Example:
</ul>
{% endif %}
<div class="dataset-stars">
{% if stars>-1%}
{% snippet "qa/stars.html", stars=stars %}
{% endif %}
</div>
<div class="dataset-info issued">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment