예제 #1
0
파일: datasets.py 프로젝트: zbyufei/bamboo
        def action(dataset, dataset_ids=dataset_ids, mapping=mapping):
            mapping = safe_json_loads(mapping)

            dataset_ids = safe_json_loads(dataset_ids)
            dataset = merge_dataset_ids(dataset_ids, mapping)

            return {Dataset.ID: dataset.dataset_id}
예제 #2
0
        def action(dataset, dataset_ids=dataset_ids, mapping=mapping):
            mapping = safe_json_loads(mapping)

            dataset_ids = safe_json_loads(dataset_ids)
            dataset = merge_dataset_ids(dataset_ids, mapping)

            return {Dataset.ID: dataset.dataset_id}
예제 #3
0
 def action(dataset):
     dataset = merge_dataset_ids(datasets)
     return {Dataset.ID: dataset.dataset_id}