From 82b8853f39ec3742757ee65d4fc3a518e491c095 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 13 Sep 2023 15:10:52 +0530 Subject: [PATCH] fix: patches --- lms/patches/v1_0/publish_batches.py | 1 + lms/patches/v1_0/publish_certificates.py | 1 + lms/www/certified_participants/certified_participants.html | 1 + 3 files changed, 3 insertions(+) diff --git a/lms/patches/v1_0/publish_batches.py b/lms/patches/v1_0/publish_batches.py index 4ef5a8e2..7b16c4f1 100644 --- a/lms/patches/v1_0/publish_batches.py +++ b/lms/patches/v1_0/publish_batches.py @@ -2,6 +2,7 @@ import frappe def execute(): + frappe.reload_doc("lms", "doctype", "lms_batch") batches = frappe.get_all("LMS Batch", pluck="name") for batch in batches: diff --git a/lms/patches/v1_0/publish_certificates.py b/lms/patches/v1_0/publish_certificates.py index 71e5861f..608f0d54 100644 --- a/lms/patches/v1_0/publish_certificates.py +++ b/lms/patches/v1_0/publish_certificates.py @@ -2,6 +2,7 @@ import frappe def execute(): + frappe.reload_doc("lms", "doctype", "lms_certificate") certificates = frappe.get_all("LMS Certificate", pluck="name") for certificate in certificates: diff --git a/lms/www/certified_participants/certified_participants.html b/lms/www/certified_participants/certified_participants.html index 988c9fac..f4e49cb3 100644 --- a/lms/www/certified_participants/certified_participants.html +++ b/lms/www/certified_participants/certified_participants.html @@ -46,6 +46,7 @@ {{ course }} {% endfor %} + {% endfor %}