From bf986e26bcb16e399e406b1ce1ebda8e571a66c5 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 18 Oct 2021 12:24:37 +0530 Subject: [PATCH] fix: rating issue --- community/lms/widgets/CourseCard.html | 2 +- community/www/courses/course.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/community/lms/widgets/CourseCard.html b/community/lms/widgets/CourseCard.html index 43fe45e9..4de60d41 100644 --- a/community/lms/widgets/CourseCard.html +++ b/community/lms/widgets/CourseCard.html @@ -57,7 +57,7 @@ {% if avg_rating %} - {{ avg_rating }} + {{ frappe.utils.flt(avg_rating, frappe.get_system_settings('float_precision') or 3) }} {% endif %} diff --git a/community/www/courses/course.html b/community/www/courses/course.html index 645978a5..67e22327 100644 --- a/community/www/courses/course.html +++ b/community/www/courses/course.html @@ -201,7 +201,7 @@ {% if avg_rating %}
- {{ avg_rating }} Rating + {{ frappe.utils.flt(avg_rating, frappe.get_system_settings('float_precision') or 3) }} Rating
{% endif %}