Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into release_3
Browse files Browse the repository at this point in the history
  • Loading branch information
sunset666 committed Oct 10, 2024
2 parents e489d89 + 54cbddd commit 6890443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ingest-pipeline/airflow/dags/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def my_callable(**kwargs):
def get_dataset_type_previous_version(**kwargs) -> List[str]:
dataset_uuid = get_previous_revision_uuid(**kwargs)
if dataset_uuid is None:
dataset_uuid = kwargs["dag_run"].conf.get("parent_submission_id", None)
dataset_uuid = kwargs["dag_run"].conf.get("parent_submission_id", [None])[0]
assert dataset_uuid is not None, "Missing previous_version_uuid"

def my_callable(**kwargs):
Expand All @@ -340,7 +340,7 @@ def my_callable(**kwargs):
def get_dataname_previous_version(**kwargs) -> str:
dataset_uuid = get_previous_revision_uuid(**kwargs)
if dataset_uuid is None:
dataset_uuid = kwargs["dag_run"].conf.get("parent_submission_id", None)
dataset_uuid = kwargs["dag_run"].conf.get("parent_submission_id", [None])[0]
assert dataset_uuid is not None, "Missing previous_version_uuid"

def my_callable(**kwargs):
Expand Down

0 comments on commit 6890443

Please sign in to comment.