-
Notifications
You must be signed in to change notification settings - Fork 0
/
mMain.py
29 lines (22 loc) · 828 Bytes
/
mMain.py
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
import mConverter
import mDB
import mFind
def main ():
print("\nGet current class details.")
course = raw_input("Course Number / Class Name / CRN: ")
print("\n")
#course = 'cs374'
# setup table 'section'
term = mDB.setupDB()
#print(not course.isdigit())
# convert the input if user entered anything other than a CRN
if(not course.isdigit()):
course = mConverter.convert(course)
# use the CRN to setup the tables for student and prereq and find the students in that section
if(course.isdigit()):
mFind.getStudentInfo(course, term)
# if there is more than one section of a class, and we are unable to convert the
# input into a CRN, we will not build the tables for student and prereqs until we have specifics
else:
print(course)
main ()