remove cast operation from str to float.

It cause loss of the bookmark data
This commit is contained in:
Tunde Akinyanmi
2023-10-13 18:14:11 +01:00
parent a02365c223
commit 8effd5614f

View File

@@ -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