Skip to content

Commit 5ba1e79

Browse files
committed
Fixed get recent runs when forks are disabled
1 parent 88764b4 commit 5ba1e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

naucse/utils/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_recent_runs(course):
2828
this_year = today.year
2929
for year, run_year in reversed(course.root.run_years.items()):
3030
for run in run_year.runs.values():
31-
if not run.is_link() or does_course_return_info(run, ["start_date", "end_date"]):
31+
if not run.is_link() or (forks_enabled() and does_course_return_info(run, ["start_date", "end_date"])):
3232
if run.base_course is course and run.end_date > cutoff:
3333
recent_runs.append(run)
3434

0 commit comments

Comments
 (0)