fix: removed unnecessary code
This commit is contained in:
@@ -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":
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -190,7 +190,9 @@ const quiz_summary = (e = undefined) => {
|
||||
.parent()
|
||||
.prepend(
|
||||
`<div class="summary">
|
||||
<div class="font-weight-bold"> ${__("Score")}: ${data.message}/${total_questions} </div>
|
||||
<div class="font-weight-bold"> ${__("Score")}: ${
|
||||
data.message
|
||||
}/${total_questions} </div>
|
||||
</div>`
|
||||
);
|
||||
$("#try-again").removeClass("hide");
|
||||
|
||||
Reference in New Issue
Block a user