From 0a91e5aa052ce705a7f87c423c9081330e971a31 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 10 Apr 2023 22:35:33 +0530 Subject: [PATCH] fix: reload question doctype in patch --- lms/patches.txt | 2 +- lms/patches/v0_0/add_question_type.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/patches.txt b/lms/patches.txt index 3666aef5..759e47ee 100644 --- a/lms/patches.txt +++ b/lms/patches.txt @@ -48,7 +48,7 @@ lms.patches.v0_0.user_singles_issue #23-11-2022 lms.patches.v0_0.rename_community_to_users #06-01-2023 lms.patches.v0_0.video_embed_link lms.patches.v0_0.rename_exercise_doctype -lms.patches.v0_0.add_question_type +lms.patches.v0_0.add_question_type #09-04-2023 lms.patches.v0_0.add_evaluator_to_assignment lms.patches.v0_0.convert_lesson_markdown_to_html #05-04-2023 lms.patches.v0_0.convert_course_description_to_html \ No newline at end of file diff --git a/lms/patches/v0_0/add_question_type.py b/lms/patches/v0_0/add_question_type.py index a4411a0a..5c5ce96e 100644 --- a/lms/patches/v0_0/add_question_type.py +++ b/lms/patches/v0_0/add_question_type.py @@ -2,6 +2,7 @@ import frappe def execute(): + frappe.reload_doc("lms", "doctype", "lms_quiz_question") questions = frappe.get_all("LMS Quiz Question", pluck="name") for question in questions: