chore: linters

This commit is contained in:
Jannat Patel
2024-07-30 15:05:24 +05:30
parent 819aac70fd
commit e46a60d00a

View File

@@ -72,14 +72,13 @@ class LMSCertificateRequest(Document):
)
for req in existing_requests:
if (
req.name != self.name and (
if req.name != self.name and (
req.date == getdate(self.date)
or getdate() < getdate(req.date)
or (
getdate() == getdate(req.date)
and getdate(self.start_time) < getdate(req.start_time)
))
)
):
course_title = frappe.db.get_value("LMS Course", req.course, "title")
frappe.throw(