def add_accepted(server, username, password):
    """
    Adds an accepted result to the database
    """
    __patch()
    key = get_key(server, username, password)
    if key not in accepted:
        accepted[key] = 0
    accepted[key] += 1
    username = shorten(username)
    hashrate.add_shares(1) 
    logging.info('Accepted: %s:%s@%s' % (username, password, server))
dataset/ETHPy150Open c00w/bitHopper/bitHopper/Tracking/Tracking.py/add_accepted/original