gbmodel/model_sqlalchemy.py
def check_professor(self, prof_id):
        """
        Checks if professor ID exists in the DB
        Input: professor ID given
        Output: True if it exists, False otherwise
        """
        try:
            prof_id = prof_id.strip().lower()
            result = professors().query.filter_by(id=prof_id).first()
        except exc.SQLAlchemyError:
            handle_exception()
            result = None

        if result is not None:
            return True
        return False

        Checks if professor ID exists in the DB
        Input: professor ID given
        Output: True if it exists, False otherwise
        
Checks if professor ID exists in the DB
Input: professor ID given
Output: True if it exists, False otherwise
Checks if professor ID exists in the DB Input : professor ID given Output : True if it exists False otherwise
def check_professor(self, prof_id):
        try:
            prof_id = prof_id.strip().lower()
            result = professors().query.filter_by(id=prof_id).first()
        except exc.SQLAlchemyError:
            handle_exception()
            result = None
        if result is not None:
            return True
        return False
def check_professor ( self , prof_id ) : try : prof_id = prof_id . strip ( ) . lower ( ) result = professors ( ) . query . filter_by ( id = prof_id ) . first ( ) except exc . SQLAlchemyError : handle_exception ( ) result = None if result is not None : return True return False
Checks if professor ID exists in the DB
Input: professor ID given
Output: True if it exists, False otherwise
Checks if professor ID exists in the DB Input : professor ID given Output : True if it exists False otherwise
"""
        Checks if professor ID exists in the DB
        Input: professor ID given
        Output: True if it exists, False otherwise
        """
self
prof_id