diff --git a/lms/lms/md.py b/lms/lms/md.py index e7830722..1a6b9ed7 100644 --- a/lms/lms/md.py +++ b/lms/lms/md.py @@ -114,7 +114,7 @@ def sanitize_html(html, macro): any broken tags. This makes sures that all those things are fixed before passing to the etree parser. """ - soup = BeautifulSoup(html, features="html5lib") + soup = BeautifulSoup(html, features="lxml") nodes = soup.body.children classname = "" if macro == "YouTubeVideo": diff --git a/lms/patches/v0_0/assignment_file_type.py b/lms/patches/v0_0/assignment_file_type.py index 1acd24eb..d86e15ab 100644 --- a/lms/patches/v0_0/assignment_file_type.py +++ b/lms/patches/v0_0/assignment_file_type.py @@ -1,9 +1,10 @@ import frappe + def execute(): - assignment_lessons = frappe.get_all("Course Lesson", { - "file_type": ["is", "set"] - }, ["name", "question"]) + assignment_lessons = frappe.get_all( + "Course Lesson", {"file_type": ["is", "set"]}, ["name", "question"] + ) for lesson in assignment_lessons: if not lesson.question: diff --git a/lms/templates/search_course/search_course.js b/lms/templates/search_course/search_course.js index 6aacfed4..2ba8d04d 100644 --- a/lms/templates/search_course/search_course.js +++ b/lms/templates/search_course/search_course.js @@ -11,7 +11,7 @@ frappe.ready(() => { hide_search_bar(); }); - $(document).keydown(function(e) { + $(document).keydown(function (e) { if ((e.metaKey || e.ctrlKey) && e.key == "k") { show_search_bar(e); } diff --git a/lms/www/batch/learn.js b/lms/www/batch/learn.js index 71a3f79e..3892861a 100644 --- a/lms/www/batch/learn.js +++ b/lms/www/batch/learn.js @@ -190,7 +190,9 @@ const quiz_summary = (e = undefined) => { .parent() .prepend( `