From 942837b4d9251fe3433ce9ab6a918111c950519f Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Fri, 11 Feb 2022 10:33:06 +0530 Subject: [PATCH] fix: instructor patch --- school/patches.txt | 2 +- school/patches/v0_0/multiple_instructors.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/school/patches.txt b/school/patches.txt index 0a1c636f..996ddade 100644 --- a/school/patches.txt +++ b/school/patches.txt @@ -21,4 +21,4 @@ execute:frappe.delete_doc("DocType", "LMS Topic") #06-10-2021 school.patches.v0_0.add_progress_to_membership #20-10-2021 execute:frappe.delete_doc("Workspace", "LMS", ignore_missing=True, force=True) #24-10-2021 execute:frappe.delete_doc("Custom Field", "User-verify_age", ignore_missing=True, force=True) -school.patches.v0_0.multiple_instructors #08-02-2022 +school.patches.v0_0.multiple_instructors #11-02-2022 diff --git a/school/patches/v0_0/multiple_instructors.py b/school/patches/v0_0/multiple_instructors.py index 8d914d7c..b0e8a59a 100644 --- a/school/patches/v0_0/multiple_instructors.py +++ b/school/patches/v0_0/multiple_instructors.py @@ -2,6 +2,7 @@ import frappe def execute(): frappe.reload_doc("lms", "doctype", "lms_course") + frappe.reload_doc("lms", "doctype", "course_instructor") courses = frappe.get_all("LMS Course", fields=["name", "instructor"]) for course in courses: doc = frappe.get_doc({