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 e3a4c52 commit 1717daa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/upsert_participants.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,14 @@ def main(
participant_meta: str,
sample_meta: str,
sample_external_id_column: str,
external_org_name: str | None = None,
external_org_name: str = '',
): # 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 1717daa

Please sign in to comment.