gbmodel/model_sqlalchemy.py
def check_team_lead(self, s_id, sess_id):
        """
        Check if the student passed in by id is the team lead
        Input: student id of the student to check
        Output: True if the student is a team lead, False otherwise
        """
        try:
            student = students.query.filter(students.id == s_id, students.session_id == sess_id).first()
            if student.is_lead == 1:
                return True
            else:
                return False
        except exc.SQLAlchemyError:
            handle_exception()
            return False

        Check if the student passed in by id is the team lead
        Input: student id of the student to check
        Output: True if the student is a team lead, False otherwise
        
Check if the student passed in by id is the team lead
Input: student id of the student to check
Output: True if the student is a team lead, False otherwise
Check if the student passed in by id is the team lead Input : student id of the student to check Output : True if the student is a team lead False otherwise
def check_team_lead(self, s_id, sess_id):
        try:
            student = students.query.filter(students.id == s_id, students.session_id == sess_id).first()
            if student.is_lead == 1:
                return True
            else:
                return False
        except exc.SQLAlchemyError:
            handle_exception()
            return False
def check_team_lead ( self , s_id , sess_id ) : try : student = students . query . filter ( students . id == s_id , students . session_id == sess_id ) . first ( ) if student . is_lead == 1 : return True else : return False except exc . SQLAlchemyError : handle_exception ( ) return False
Check if the student passed in by id is the team lead
Input: student id of the student to check
Output: True if the student is a team lead, False otherwise
Check if the student passed in by id is the team lead Input : student id of the student to check Output : True if the student is a team lead False otherwise
"""
        Check if the student passed in by id is the team lead
        Input: student id of the student to check
        Output: True if the student is a team lead, False otherwise
        """
self
s_id
sess_id