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: