Skip to content

Commit 4277160

Browse files
committed
Fixed the issue of the end time of events
1 parent 4aac1af commit 4277160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

course.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def get_courses(self, semester: int) -> List:
142142
start = re.match(
143143
r'^index\s*=(\d+)\*unitCount\+(\d+)$', temp[1].strip())
144144
end = re.match(
145-
r'^index\s*=(\d+)\*unitCount\+(\d+)$', temp[3].strip())
145+
r'^index\s*=(\d+)\*unitCount\+(\d+)$', temp[-2].strip())
146146
start_time = (int(start.group(1)) + 1, int(start.group(2)) + 1)
147147
end_time = (int(end.group(1)) + 1, int(end.group(2)) + 1)
148148

0 commit comments

Comments
 (0)