コード例 #1
0
def db_rm_contact(name):
    """Remove a contact from the the database.

    Args:
        name (str): Name of the contact to remove.
    """
    DB.remove(CONTACT.name == name.lower())
コード例 #2
0
def db_rm_blacklist(phone):
    """Removes a blacklisted phone from the database.

    Args:
        phone (str): Phone of the contact.
    """
    DB.remove((CONTACT.phone == phone) & (CONTACT.blacklisted == True))