def get_ignored(username):
    # type: (str) -> Dict[str, str]
    '''
    Returns a dictionary of ignored alerts to reasons why
    the ignored are ignored.

    Args:
        username (str): The username of the user to retrieve ignored alerts for.
    Returns:
        Dict[str, str]: A mapping of ignored alert titles to reasons
    '''
    __update_ignored_list()
    rows = SQLEngine.execute('''SELECT title, reason FROM ignored WHERE ldap = %s''', (username,))
    return {row[0]: row[1] for row in rows}
Returns a dictionary of ignored alerts to reasons why
the ignored are ignored.

Args:
username (str): The username of the user to retrieve ignored alerts for.
Returns:
Dict[str, str]: A mapping of ignored alert titles to reasons
securitybot/ignored_alerts.py