Skip to content

Commit 224ffa0

Browse files
committed
fix potential time dependent test case failure for projection days
1 parent ed4f608 commit 224ffa0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

backend/app/services/implementations/match_service.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -806,10 +806,11 @@ def _attach_initial_suggested_times(self, match: Match, volunteer: User) -> None
806806
)
807807
volunteer_tz = timezone.utc
808808

809-
# Project templates onto the next week
810-
projection_weeks = 1
809+
# Project templates 8 days ahead (1 week + 1 day) to ensure we capture at least one future
810+
# occurrence of each template day, even if today's times have already passed
811+
projection_days = 8
811812

812-
for day_offset in range(projection_weeks * 7):
813+
for day_offset in range(projection_days):
813814
# Calculate target date in UTC
814815
target_date_utc = now + timedelta(days=day_offset)
815816

0 commit comments

Comments
 (0)