Skip to content

Commit

Permalink
fix extension
Browse files Browse the repository at this point in the history
  • Loading branch information
imagine-hussain committed Sep 25, 2023
1 parent 49b5837 commit 67a89de
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions backend/server/routers/ctf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,21 @@ def hard_requirements(data: PlannerData) -> bool:
# including validity of the program
return (
data.program == "3778"
# and "COMPA1" in data.specialisations
# and "MATHC2" in data.specialisations
# and len(data.plan) == 3
and "COMPA1" in data.specialisations
and "MATHC2" in data.specialisations
and len(data.plan) == 3
)


def extended_courses(data: PlannerData) -> bool:
return len({
extended_courses = {
"COMP3821",
"COMP3891",
"COMP6841",
"COMP6843"
"COMP6845"
}.intersection(all_courses(data))) >= 4
}
return len(extended_courses & all_courses(data)) >= 3


def summer_course(data: PlannerData) -> bool:
Expand Down

0 comments on commit 67a89de

Please sign in to comment.