gbmodel/model_sqlalchemy.py
def prof_id(self, name):
        """
        Gets the id of the professor with the given name, if he is found. Returns -1 otherwise
        Input: professor name
        Output: return professor's id
        """
        try:
            prof = professors.query.filter_by(name=name).first()
        except exc.SQLAlchemyError:
            handle_exception()
            prof = None

        if prof is None:
            return -1
        return prof.id

        Gets the id of the professor with the given name, if he is found. Returns -1 otherwise
        Input: professor name
        Output: return professor's id
        
Gets the id of the professor with the given name, if he is found. Returns -1 otherwise
Input: professor name
Output: return professor's id
Gets the id of the professor with the given name if he is found . Returns - 1 otherwise Input : professor name Output : return professor ' s id
def prof_id(self, name):
        try:
            prof = professors.query.filter_by(name=name).first()
        except exc.SQLAlchemyError:
            handle_exception()
            prof = None
        if prof is None:
            return -1
        return prof.id
def prof_id ( self , name ) : try : prof = professors . query . filter_by ( name = name ) . first ( ) except exc . SQLAlchemyError : handle_exception ( ) prof = None if prof is None : return - 1 return prof . id
Gets the id of the professor with the given name, if he is found.
Gets the id of the professor with the given name if he is found .
"""
        Gets the id of the professor with the given name, if he is found. Returns -1 otherwise
        Input: professor name
        Output: return professor's id
        """
self
name