From c7f26f706d80f52ef0459ca541a8d051d0f6d74c Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 24 Dec 2024 09:29:33 +0000 Subject: [PATCH] Change wording of reviews hypertext helpfulness --- app/utils/minetest_hypertext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/utils/minetest_hypertext.py b/app/utils/minetest_hypertext.py index edf51525..90e62254 100644 --- a/app/utils/minetest_hypertext.py +++ b/app/utils/minetest_hypertext.py @@ -339,8 +339,8 @@ def package_reviews_as_hypertext(package: Package, formspec_version: int = 7): 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{escape_hypertext(review.thread.title)}\n{comment_body}\n{comments} - {helpful}\n\n" + helpful = f"Review helpfulness: +{positive} / -{negative}" + body += f"{author} {rating}\n{escape_hypertext(review.thread.title)}\n{comment_body}\n{comments} — {helpful}\n\n" if len(reviews) == 0: body += escape_hypertext(gettext("No reviews available."))