fix: send live class reminder on the day of the class

This commit is contained in:
Jannat Patel
2025-02-18 17:26:40 +05:30
parent 30574ea0fd
commit ba27e8ca95

View File

@@ -5,7 +5,7 @@ import frappe
from frappe import _ from frappe import _
from frappe.model.document import Document from frappe.model.document import Document
from datetime import timedelta from datetime import timedelta
from frappe.utils import cint, get_datetime, format_date, add_days, nowdate, format_time from frappe.utils import cint, get_datetime, format_date, nowdate, format_time
class LMSLiveClass(Document): class LMSLiveClass(Document):
@@ -68,7 +68,7 @@ def send_live_class_reminder():
classes = frappe.get_all( classes = frappe.get_all(
"LMS Live Class", "LMS Live Class",
{ {
"date": add_days(nowdate(), 1), "date": nowdate(),
}, },
["name", "batch_name", "title", "date", "time"], ["name", "batch_name", "title", "date", "time"],
) )