def check_post(conn, title, date):
    """
    Check if a post has been seen before
    :param conn:  Connection to the SQLite database
    :param title: title of post :str
    :param date: date posted :date
    :return: boolean 
    """
    sql = """
            SELECT * FROM posts WHERE post_title=%s AND post_date=%s
    """

    cur = conn.cursor()
    cur.execute(sql, (title, date))
    data = cur.fetchone()
    return True if data else False