From dd6a22e8c220aae2ca8f239f3301338621a60eab Mon Sep 17 00:00:00 2001 From: Brendan O'Leary Date: Thu, 2 Apr 2026 10:02:40 -0400 Subject: [PATCH] Fix task_01 grading: reject 3AM and tighten 3PM time match - Remove T030000 pattern that incorrectly matched 3:00 AM - Change T15\d{4} to T1500\d{2} to only match 15:00:xx Fixes #94 --- tasks/task_01_calendar.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/task_01_calendar.md b/tasks/task_01_calendar.md index ff6239b..576a1c6 100644 --- a/tasks/task_01_calendar.md +++ b/tasks/task_01_calendar.md @@ -91,8 +91,8 @@ def grade(transcript: list, workspace_path: str) -> dict: else: scores["description_present"] = 0.0 - # Check for time (15:00 or 3pm) - if re.search(r'DTSTART.*T15\d{4}', ics_content) or re.search(r'DTSTART.*T030000', ics_content): + # Check for time (3:00 PM = 15:00, allow any seconds value) + if re.search(r'DTSTART.*T1500\d{2}', ics_content): scores["time_correct"] = 1.0 else: scores["time_correct"] = 0.0