Skip to content
Snippets Groups Projects
Commit a475f41b authored by Martin Mareš's avatar Martin Mareš
Browse files

Home: Sort courses

parent f8825458
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,7 @@ def list_courses(advertised_only: bool) -> Tuple[List[db.Semester], List[db.Enro
.join(db.Enroll.course)
.filter(db.Enroll.uid == g.uid)
.filter(db.Course.semid.in_([s.semid for s in semesters]))
.order_by(db.Course.name)
.options(joinedload(db.Enroll.course))
))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment