gbmodel/model_sqlalchemy.py
def add_student(self, s):
        """
        Insert removed students into remocved_students table
        Input: student info
        Output: return False if the info is empty
                Otherwise, add student to the list and return True
        """
        if s is None:
            return False
        current_date = datetime.datetime.now()
        removed_student = removed_students(id=s.id,
                                           tid=s.tid,
                                           session_id=s.session_id,
                                           name=s.name,
                                           is_lead=s.is_lead,
                                           midterm_done=s.midterm_done,
                                           final_done=s.final_done,
                                           removed_date=current_date)
        db.session.add(removed_student)
        db.session.commit()
        return True

        Insert removed students into remocved_students table
        Input: student info
        Output: return False if the info is empty
                Otherwise, add student to the list and return True
        
Insert removed students into remocved_students table
Input: student info
Output: return False if the info is empty
Otherwise, add student to the list and return True
Insert removed students into remocved_students table Input : student info Output : return False if the info is empty Otherwise add student to the list and return True
def add_student(self, s):
        if s is None:
            return False
        current_date = datetime.datetime.now()
        removed_student = removed_students(id=s.id,
                                           tid=s.tid,
                                           session_id=s.session_id,
                                           name=s.name,
                                           is_lead=s.is_lead,
                                           midterm_done=s.midterm_done,
                                           final_done=s.final_done,
                                           removed_date=current_date)
        db.session.add(removed_student)
        db.session.commit()
        return True
def add_student ( self , s ) : if s is None : return False current_date = datetime . datetime . now ( ) removed_student = removed_students ( id = s . id , tid = s . tid , session_id = s . session_id , name = s . name , is_lead = s . is_lead , midterm_done = s . midterm_done , final_done = s . final_done , removed_date = current_date ) db . session . add ( removed_student ) db . session . commit ( ) return True
Insert removed students into remocved_students table
Input: student info
Output: return False if the info is empty
Otherwise, add student to the list and return True
Insert removed students into remocved_students table Input : student info Output : return False if the info is empty Otherwise add student to the list and return True
"""
        Insert removed students into remocved_students table
        Input: student info
        Output: return False if the info is empty
                Otherwise, add student to the list and return True
        """
self
s