Skip to content

Commit

Permalink
alter parameter order
Browse files Browse the repository at this point in the history
  • Loading branch information
edulauer committed Feb 19, 2024
1 parent 9436b07 commit 9829b9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class DAGConfig:
terms: List[str]
sql: str
conn_id: str
department: str
emails: List[str]
subject: str
attach_csv: bool
Expand All @@ -35,7 +36,7 @@ class DAGConfig:
doc_md: str
dag_tags: Set[str]
owner: str
department: str


class FileParser(ABC):
"""Abstract class to build file parsers with DAG configuration.
Expand Down Expand Up @@ -139,6 +140,7 @@ def _parse_yaml(self) -> DAGConfig:
terms=terms,
sql=sql,
conn_id=conn_id,
department=department,
emails=emails,
subject=subject,
attach_csv=attach_csv,
Expand All @@ -150,7 +152,6 @@ def _parse_yaml(self) -> DAGConfig:
doc_md=doc_md,
dag_tags=set(dag_tags),
owner=owner,
department=department,
)

def _get_terms_params(self, search) -> Tuple[List[str], str, str]:
Expand Down

0 comments on commit 9829b9f

Please sign in to comment.