fix: course is no longer mandatory to generate a certificate

This commit is contained in:
Jannat Patel
2025-01-16 12:35:13 +05:30
parent b4c7338b76
commit 27ae014fcb
5 changed files with 57 additions and 52 deletions

View File

@@ -1889,7 +1889,6 @@ def get_batches(filters=None, start=0, page_length=20, order_by="start_date"):
page_length=page_length,
)
print(batches)
batchType = get_batch_type(filters)
if batchType == "upcoming":
batches_to_remove = list(
@@ -1899,7 +1898,6 @@ def get_batches(filters=None, start=0, page_length=20, order_by="start_date"):
batches,
)
)
print(batches_to_remove)
batches = [batch for batch in batches if batch not in batches_to_remove]
elif batchType == "archived":
batches_to_remove = list(