def students_applied(iid): students = [] for r in adb.view_student_t(): if r[4][int(iid)] == '1': students.append(r) return students
def reg_student(name, password, cpassword, email): #return 1 if passwords not equal error if password != cpassword: return 1 if '@' not in email: return 2 for r in adb.view_student_t(): #students cant have same email if email == r[4]: return 4 else: adb.add_student(name, password, email) return False
def adminViewS(): s = "" for r in adb.view_student_t(): s += str(r) + '\n' return s