From 0b68f5455161f0fc4e6563573a8f438995c6ded4 Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Mon, 14 Oct 2024 13:33:33 +0200 Subject: [PATCH] Copy: Destination semester must be advertised --- owl/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owl/admin.py b/owl/admin.py index 30f3966..eff8141 100644 --- a/owl/admin.py +++ b/owl/admin.py @@ -494,7 +494,7 @@ def course_choices(include_course: db.Course): sem_ids = ( select(db.Semester.semid) .order_by(db.Semester.rank.desc()) - .limit(2) + .filter_by(advertised=True) .subquery() ) -- GitLab