def print_in_progress(id):
    """
    Format json info about process in progress

    :param id: process identifier
    :type id: int
    """
    location = id % '/processes/%d'
    data = {
        'asyncTask': {
            'link': {
                'poll': location
            }
        }
    }

    # need to create response manually in orted to have custom status code
    response = make_response(json.dumps(data, indent=2))
    response.status = 'Accepted'
    response.status_code = 202
    response.headers['Location'] = location
    response.headers['content-type'] = 'application/json'
    return response
dataset/ETHPy150Open gooddata/smoker/smoker/server/restserver.py/print_in_progress/swapped operands of `%`