fix: instructor notes

This commit is contained in:
Jannat Patel
2023-09-01 23:14:58 +05:30
parent 93db82305f
commit a9bd01b34e
3 changed files with 5 additions and 3 deletions

View File

@@ -148,7 +148,9 @@ def get_lesson_details(chapter):
lesson_details.number = flt(f"{chapter.idx}.{row.idx}")
lesson_details.icon = get_lesson_icon(lesson_details.body)
if lesson_details.instructor_notes:
lesson_details.instructor_notes = markdown_to_html(lesson_details.instructor_notes)
lesson_details.instructor_notes_html = markdown_to_html(
lesson_details.instructor_notes
)
lessons.append(lesson_details)
return lessons