-
Notifications
You must be signed in to change notification settings - Fork 0
/
CourseFilters.gs
54 lines (51 loc) · 1.44 KB
/
CourseFilters.gs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Electrical and Computer Engineering
function filterCoursesECGR(course_dept_code, course_number, course_section) {
//if (course_dept_code == 'ECGR') {
// if (course_number == '2161') {
// return true;
// } else {
// return false;
// }
//}
if (course_dept_code == 'ENGR') {
if (course_number == '3295' && course_section.substring(0,1) == 'E') {
} else if (course_number == '1202' && course_section.substring(0,1) == 'E') {
} else {
return true;
}
}
return false;
}
// Mechanical Engineering
function filterCoursesMEGR(course_dept_code, course_number, course_section) {
if (course_dept_code == 'ECGR') {
if (course_number == '2161') {
return false;
} else {
return true;
}
}
if (course_dept_code == 'ENGR') {
if (course_number == '3295' && course_section.substring(0,1) == 'M') {
} else if (course_number == '1202' && course_section.substring(0,1) == 'M') {
} else {
return true;
}
}
return false;
}
// Civil Engineering
function filterCoursesCEGR(course_dept_code, course_number, course_section) {
if (course_dept_code == 'ENGR') {
if (course_number == '3295' && course_section.substring(0,1) == 'C') {
} else if (course_number == '1202' && course_section.substring(0,1) == 'C') {
} else {
return true;
}
}
return false;
}
// Default
function filterCoursesDefault(course_dept_code, course_number, course_section) {
return false;
}