fix: no cache for quiz
This commit is contained in:
@@ -22,10 +22,10 @@ frappe.ready(() => {
|
||||
|
||||
|
||||
const add_question = () => {
|
||||
if ($(".new-quiz-card").length) {
|
||||
/* if ($(".new-quiz-card").length) {
|
||||
scroll_to_question_container();
|
||||
return;
|
||||
}
|
||||
} */
|
||||
|
||||
let add_after = $(".quiz-card").length ? $(".quiz-card:last") : $("#quiz-title");
|
||||
let question_template = `<div class="quiz-card new-quiz-card">
|
||||
|
||||
@@ -3,6 +3,7 @@ from frappe.utils import cstr
|
||||
|
||||
|
||||
def get_context(context):
|
||||
context.no_cache = 1
|
||||
quizname = frappe.form_dict["quizname"]
|
||||
if quizname == "new-quiz":
|
||||
context.quiz = frappe._dict()
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import frappe
|
||||
|
||||
def get_context(context):
|
||||
context.no_cache = 1
|
||||
context.quiz_list = frappe.get_all("LMS Quiz", {"owner": frappe.session.user}, ["name", "title"])
|
||||
|
||||
Reference in New Issue
Block a user