Skip to content

Commit

Permalink
Merge pull request #8163 from kiendang/upload-dataset-asset-contributor
Browse files Browse the repository at this point in the history
Fix adding asset uploader when uploading a dataset
  • Loading branch information
madhavajay authored Oct 16, 2023
2 parents fbd2c72 + 10bd329 commit 8ad6234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/syft/src/syft/client/domain_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def upload_dataset(self, dataset: CreateDataset) -> Union[SyftSuccess, SyftError

user = self.users.get_current_user()
dataset = add_default_uploader(user, dataset)
for i in range(len(dataset.assets)):
asset = dataset.assets[i]
dataset.assets[i] = add_default_uploader(user, asset)
for i in range(len(dataset.asset_list)):
asset = dataset.asset_list[i]
dataset.asset_list[i] = add_default_uploader(user, asset)

dataset._check_asset_must_contain_mock()
dataset_size = 0
Expand Down

0 comments on commit 8ad6234

Please sign in to comment.