From 252fe7fd6a56c7654e1ab758bc3f671b72a0e47d Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Mon, 29 Aug 2022 14:02:04 +1000 Subject: [PATCH] fix visibility of stars when editing a review Previously the star rating appeared to be five stars when editing a review, regardless of what value was actually stored. Now it will show the actual rating, including half stars. Fixes #2213 --- bookwyrm/templates/snippets/form_rate_stars.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/snippets/form_rate_stars.html b/bookwyrm/templates/snippets/form_rate_stars.html index 302f181ed..47cb241dc 100644 --- a/bookwyrm/templates/snippets/form_rate_stars.html +++ b/bookwyrm/templates/snippets/form_rate_stars.html @@ -37,7 +37,7 @@ type="radio" name="rating" value="{{ forloop.counter0 }}.5" - {% if default_rating == forloop.counter %}checked{% endif %} + {% if default_rating >= forloop.counter0 %}checked{% endif %} /> = forloop.counter %}checked{% endif %} />