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}
def action(dataset): dataset = merge_dataset_ids(datasets) return {Dataset.ID: dataset.dataset_id}