From 8effd5614f9c2d777ca7be1480c4d24700bd1424 Mon Sep 17 00:00:00 2001 From: Tunde Akinyanmi Date: Fri, 13 Oct 2023 18:14:11 +0100 Subject: [PATCH] remove cast operation from str to float. It cause loss of the bookmark data --- lms/lms/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/lms/utils.py b/lms/lms/utils.py index f7dbe489..a0065dea 100644 --- a/lms/lms/utils.py +++ b/lms/lms/utils.py @@ -150,7 +150,7 @@ def get_lesson_details(chapter): ], as_dict=True, ) - lesson_details.number = flt(f"{chapter.idx}.{row.idx}") + lesson_details.number = f"{chapter.idx}.{row.idx}" lesson_details.icon = get_lesson_icon(lesson_details.body) lessons.append(lesson_details) return lessons