Skip to content

Commit

Permalink
clone_children=True + new line at end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
chrowe committed Jun 7, 2023
1 parent 1e281e8 commit 60cb5c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clone_dataset/clone_dataset_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ def clone_ds(self, token=None, enviro='preproduction', clone_server=None, datase
'name': new_dataset_name
}
# Clone dataset
new_dataset_id = clone_ds(dataset_to_copy, token=API_TOKEN, enviro='production', dataset_params=clone_attributes, clone_children=clone_children, clone_first_layer_only=clone_first_layer_only, clone_default_widget_only=clone_default_widget_only)
new_dataset_id = clone_ds(dataset_to_copy, token=API_TOKEN, enviro='production', dataset_params=clone_attributes, clone_children=True, clone_first_layer_only=clone_first_layer_only, clone_default_widget_only=clone_default_widget_only)
print('new dataset API ID:' + new_dataset_id)



# Delete dataset (By default this will delete the new dataset you just created)
#dataset_to_delete = LMIPy.Dataset(new_dataset_id)
#delete_url = f'{dataset_to_delete.server}/v1/dataset/{dataset_to_delete.id}'
#requests.delete(delete_url, headers=create_headers())
#requests.delete(delete_url, headers=create_headers())

0 comments on commit 60cb5c7

Please sign in to comment.