fix: increased schedule range to 60 days

This commit is contained in:
Jannat Patel
2025-12-19 10:42:45 +05:30
parent 9da6cff8a5
commit 58b26b6e32
2 changed files with 9 additions and 55 deletions

View File

@@ -174,10 +174,10 @@ def get_unavailable_dates(evaluator):
def get_end_date(start_date, batch=None):
end_date = add_days(start_date, 30)
end_date = add_days(start_date, 60)
if batch:
batch_end_date = frappe.db.get_value("LMS Batch", batch, "evaluation_end_date")
if batch_end_date:
if batch_end_date and batch_end_date < getdate(end_date):
end_date = getdate(batch_end_date)
return end_date