Skip to content

Commit

Permalink
external-org-name set to ''.
Browse files Browse the repository at this point in the history
  • Loading branch information
milo-hyben committed Nov 21, 2024
1 parent 1717daa commit 74c4038
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 @@ -110,14 +110,18 @@ def main(
participant_meta: str,
sample_meta: str,
sample_external_id_column: str,
external_org_name: str = '',
external_org_name: str | None = None,
): # pylint: disable=too-many-locals
"""Upsert participants to metamist"""
# Query metamist
project = bucket.split('-')[1] # project name derived from bucket name
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 74c4038

Please sign in to comment.