Merge pull request #634 from pateljannat/template-days

feat: Days and Duration in timetable template
This commit is contained in:
Jannat Patel
2023-10-04 13:06:36 +05:30
committed by GitHub
3 changed files with 22 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ def get_context(context):
)
if not batch.published:
private_batches.append(batch)
elif getdate(batch.start_date) < getdate():
elif getdate(batch.start_date) <= getdate():
past_batches.append(batch)
else:
upcoming_batches.append(batch)