def get_raffles_for_date_expanded(db, date, user_id, conf):
    """Get raffles for a specific date

    Args:
        db (psycopg2.connection): The db to generate a cursor
        date (datetime.date): The date to search for
        user_id (int): User id
        conf (Config): Configurations

    Returns:
        psycopg2.cursor: All of the results for the date
    """
    cur = db.cursor()
    cur.execute(f"SELECT * FROM all_entries e WHERE e.user_id = {user_id} AND e.date = '{date}' ORDER BY e.id DESC")
    return cur