Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
keegansmith21 committed Jul 11, 2024
1 parent 4b26f80 commit da3c42d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions observatory_platform/airflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def make_dag_from_params(workflow: Workflow):
f"dag_id={workflow.dag_id}: could not locate class_name={workflow.class_name}.create_dag"
)

return cls(param_cls(dag_id=workflow.dag_id, cloud_workspace=workflow.cloud_workspace, **workflow.kwargs))
return cls(params=param_cls(dag_id=workflow.dag_id, cloud_workspace=workflow.cloud_workspace, **workflow.kwargs))


def make_dag(workflow: Workflow):
Expand Down Expand Up @@ -363,7 +363,7 @@ def from_dict(dict_: Dict) -> Workflow:
return Workflow(dag_id, name, class_name, cloud_workspace, kwargs)

@staticmethod
def parse_workflows(list: List) -> List[Workflow]:
def parse_workflows(list: Dict) -> List[Workflow]:
"""Parse the workflows list object into a list of Workflow instances.
:param list: the list.
Expand Down

0 comments on commit da3c42d

Please sign in to comment.