Skip to content

Commit

Permalink
Change wording of reviews hypertext helpfulness
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Dec 24, 2024
1 parent 699eabe commit c7f26f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utils/minetest_hypertext.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ def make_link(url: str, label: str):
num_comments = review.thread.replies.count()
comments = make_link(abs_url_for("threads.view", id=review.thread.id), f"Comments [{num_comments}]")
positive, negative, _ = review.get_totals()
helpful = f"{positive} helpful, {negative} unhelpful"
body += f"{author} {rating}\n<big>{escape_hypertext(review.thread.title)}</big>\n{comment_body}\n{comments} - {helpful}\n\n"
helpful = f"Review helpfulness: +{positive} / -{negative}"
body += f"{author} {rating}\n<big>{escape_hypertext(review.thread.title)}</big>\n{comment_body}\n{comments} {helpful}\n\n"

if len(reviews) == 0:
body += escape_hypertext(gettext("No reviews available."))
Expand Down

0 comments on commit c7f26f7

Please sign in to comment.