gbmodel/model_sqlalchemy.py
def check_dup_student(self, id, session_id):
        """
        Check if a student already exits in a session
        Input: id of the student and selected session id
        Output: return False if the student was already in
                return True otherwise
        """
        try:
            result = students.query.filter_by(id=id, session_id=session_id).first()
        except exc.SQLAlchemyError:
            handle_exception()
            result = None
        if result is not None:
            return False
        return True

        Check if a student already exits in a session
        Input: id of the student and selected session id
        Output: return False if the student was already in
                return True otherwise
        
Check if a student already exits in a session
Input: id of the student and selected session id
Output: return False if the student was already in
return True otherwise
Check if a student already exits in a session Input : id of the student and selected session id Output : return False if the student was already in return True otherwise
def check_dup_student(self, id, session_id):
        try:
            result = students.query.filter_by(id=id, session_id=session_id).first()
        except exc.SQLAlchemyError:
            handle_exception()
            result = None
        if result is not None:
            return False
        return True
def check_dup_student ( self , id , session_id ) : try : result = students . query . filter_by ( id = id , session_id = session_id ) . first ( ) except exc . SQLAlchemyError : handle_exception ( ) result = None if result is not None : return False return True
Check if a student already exits in a session
Input: id of the student and selected session id
Output: return False if the student was already in
return True otherwise
Check if a student already exits in a session Input : id of the student and selected session id Output : return False if the student was already in return True otherwise
"""
        Check if a student already exits in a session
        Input: id of the student and selected session id
        Output: return False if the student was already in
                return True otherwise
        """
self
id
session_id