@app.route('/foo/weblab/sessions/<session_id>', methods=['POST'])
def dispose_experiment(session_id):
    request_data = get_json()
    if request_data in 'action' and request_data['action'] == 'delete':
        if session_id in DATA:
            data = DATA.pop(session_id, None)
            if data is not None:
                EXPIRED_DATA[session_id] = data['back']
            return 'deleted'
        return 'not found'
    return 'unknown op'
dataset/ETHPy150Open weblabdeusto/weblabdeusto/experiments/unmanaged/http/python/flask/sample.py/dispose_experiment/swapped operands of `in`