From 8891ea4369599386bb5f22aa143c3ad9e221c188 Mon Sep 17 00:00:00 2001 From: Ashley Allen Date: Fri, 27 Jul 2018 18:10:18 +0100 Subject: [PATCH] Small tweaks --- pages/genre/genre.pixy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/genre/genre.pixy b/pages/genre/genre.pixy index e92061c6..2537ffa1 100644 --- a/pages/genre/genre.pixy +++ b/pages/genre/genre.pixy @@ -1,9 +1,9 @@ component Genre(genre string, animes []*arn.Anime, user *arn.User, userScore float64, userCompleted int) h1(title=fmt.Sprint(len(animes)) + " anime")= strings.Title(genre) - .average-score-total-completed - if user != nil - p= fmt.Sprintf("Average Score: %.1f | Total Completed: %d", userScore, userCompleted) + if user != nil + .average-score-total-completed + p= fmt.Sprintf("Average rating: %." + strconv.Itoa(user.Settings().Format.RatingsPrecision) + "f | Total completed: %d", userScore, userCompleted) .corner-buttons-hide-on-mobile if user != nil