Skip to content

Commit

Permalink
Lint fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
frjo committed Sep 8, 2023
1 parent f46314b commit b6a98cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
{{ recommendation|traffic_light }}
</span>
{% with assigned_reviewers|average_review_score as average %}
<span class="font-medium">
{{ assigned_reviewers|average_review_score }}
</span>
<span class="font-medium">
{{ assigned_reviewers|average_review_score }}
</span>
{% endwith %}
</div>

Expand Down
6 changes: 4 additions & 2 deletions hypha/apply/review/templatetags/review_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,7 @@ def average_review_score(reviewers):
and not reviewer.review.score == NA
]
if len(scores) > 0:
return _('Avg. score: {average}').format(average=round(sum(scores) / len(scores), 1))
return ''
return _("Avg. score: {average}").format(
average=round(sum(scores) / len(scores), 1)
)
return ""

0 comments on commit b6a98cc

Please sign in to comment.