def add_getwork(server, username, password):
    """
    Adds a getwork to the database
    """
    __patch()
    key = get_key(server, username, password)
    if key not in getworks:
        getworks[key] = 0
    getworks[key] += 1
    username = shorten(username)
    logging.info('Getwork: %s:%s@%s' % (username, password, server))
dataset/ETHPy150Open c00w/bitHopper/bitHopper/Tracking/Tracking.py/add_getwork/original