chore: linters
This commit is contained in:
@@ -72,14 +72,13 @@ class LMSCertificateRequest(Document):
|
|||||||
)
|
)
|
||||||
|
|
||||||
for req in existing_requests:
|
for req in existing_requests:
|
||||||
if (
|
if req.name != self.name and (
|
||||||
req.name != self.name and (
|
|
||||||
req.date == getdate(self.date)
|
req.date == getdate(self.date)
|
||||||
or getdate() < getdate(req.date)
|
or getdate() < getdate(req.date)
|
||||||
or (
|
or (
|
||||||
getdate() == getdate(req.date)
|
getdate() == getdate(req.date)
|
||||||
and getdate(self.start_time) < getdate(req.start_time)
|
and getdate(self.start_time) < getdate(req.start_time)
|
||||||
))
|
)
|
||||||
):
|
):
|
||||||
course_title = frappe.db.get_value("LMS Course", req.course, "title")
|
course_title = frappe.db.get_value("LMS Course", req.course, "title")
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
|
|||||||
Reference in New Issue
Block a user