diff --git a/bookwyrm/views/annual_summary.py b/bookwyrm/views/annual_summary.py index 7a734c93f..b20b0c728 100644 --- a/bookwyrm/views/annual_summary.py +++ b/bookwyrm/views/annual_summary.py @@ -105,12 +105,12 @@ class AnnualSummary(View): "books_total": len(read_books_in_year), "books": read_books_in_year, "pages_total": page_stats["pages__sum"], - "pages_average": page_stats["pages__avg"], + "pages_average": round(page_stats["pages__avg"]), "book_pages_lowest": book_pages_lowest, "book_pages_highest": book_pages_highest, "no_page_number": no_page_list, "ratings_total": len(ratings), - "rating_average": ratings_stats["rating__avg"], + "rating_average": round(ratings_stats["rating__avg"], 2), "book_rating_highest": ratings.order_by("-rating").first(), "best_ratings_books_ids": best_ratings_books_ids, "paginated_years": paginated_years,