Exemple #1
0
 def get_star_html(cls, resource_id):
     report = reports.resource_five_stars(resource_id)
     stars = report.get('openness_score', -1)
     if stars >= 0:
         reason = report.get('openness_score_reason')
         return html.get_star_html(stars, reason)
     return None
Exemple #2
0
 def get_star_html(cls, resource_id):
     report = reports.resource_five_stars(resource_id)
     stars = report.get('openness_score', -1)
     if stars >= 0:
         reason = report.get('openness_score_reason')
         return html.get_star_html(stars, reason)
     return None
Exemple #3
0
    def get_star_html(self, resource_id):
        from ckanext.qa import reports

        report = reports.resource_five_stars(resource_id)

        stars = report.get('openness_score', -1)
        if stars >= 0:
            reason = report.get('openness_score_reason')
            return html.get_star_html(stars, reason)
        return None
Exemple #4
0
    def get_star_html(self, resource_id):
        from ckanext.qa import reports

        report = reports.resource_five_stars(resource_id)

        stars = report.get('openness_score', -1)
        if stars >= 0:
            reason = report.get('openness_score_reason')
            return html.get_star_html(stars, reason)
        return None