Skip to content

Commit

Permalink
Making external-org-name optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
milo-hyben committed Nov 21, 2024
1 parent 430fdff commit d789bb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/upsert_participants.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def read_files_from_gcs(bucket_name: str, file_path: str):
@click.option('--participant-meta', help='Path to participant metadata CSV.')
@click.option('--sample-meta', help='Path to sample metadata CSV.')
@click.option('--sample-external-id-column', help='Column name for sample external ID.')
@click.option('--external-org-name', help='External organization name.')
@click.option('--external-org-name', required=False, help='External organization name.')
def main(
bucket: str,
participant_meta: str,
Expand All @@ -118,6 +118,10 @@ def main(
data_response = get_sample_data(project)
project_id = data_response.get('project')['id']

# allow empty external_org_name for backwards compatibility
if external_org_name is None:
external_org_name = ''

sample_eid_mapping = map_sample_eid_to_sample_data(data_response)

# Set up logging
Expand Down

0 comments on commit d789bb1

Please sign in to comment.