Skip to content

Commit

Permalink
Fix batch upload issue with missing values, initializing 'parent' field
Browse files Browse the repository at this point in the history
  • Loading branch information
NTaherifar committed Aug 20, 2024
1 parent ee249ae commit 9140e1d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def prepare_samples_data(samples_df, authors_df, related_resources_df, funding_d
sample['notes'] = sample['description']
sample['location_choice'] = 'noLocation'
sample['parent_sample'] = sample['parent_sample']
sample['parent'] = ''

org = toolkit.get_action('organization_show')({}, {'id': org_id})
sample['owner_org'] = org_id
Expand Down

0 comments on commit 9140e1d

Please sign in to comment.