Skip to content

Commit

Permalink
DAGs: db connection name change
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed Jul 31, 2024
1 parent 963537b commit 1ba37db
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Lastly, add the necessary Airflow connections through the UI.

- Navigate to Admin -> Connections in the Airflow UI.
- Click on "Add" and fill in the details:
- Connection Id: `superset_qa`
- Connection Id: `superset`
- Login: `airflow`
- Database: `airflow`
- Password: `airflow`
Expand Down
2 changes: 1 addition & 1 deletion dags/library/cern_publication_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def join_and_add_year(counts, **kwargs):

results = join_and_add_year(counts)

@sqlalchemy_task(conn_id="superset_qa")
@sqlalchemy_task(conn_id="superset")
def populate_cern_publication_records(results, session, **kwargs):
record = (
session.query(LibraryCernPublicationRecords)
Expand Down
2 changes: 1 addition & 1 deletion dags/library/new_items_in_the_institutional_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def join_and_add_year(counts, **kwargs):

results = join_and_add_year(counts)

@sqlalchemy_task(conn_id="superset_qa")
@sqlalchemy_task(conn_id="superset")
def populate_new_items_in_the_institutional_repository(results, session, **kwargs):
record = (
session.query(LibraryNewItemsInTheInstitutionalRepository)
Expand Down
2 changes: 1 addition & 1 deletion dags/open_access/gold_open_access_mechanisms.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def join_and_add_year(counts, **kwargs):

results = join_and_add_year(counts)

@sqlalchemy_task(conn_id="superset_qa")
@sqlalchemy_task(conn_id="superset")
def populate_golden_open_access(results, session, **kwargs):
record = (
session.query(OAGoldenOpenAccess).filter_by(year=results["year"]).first()
Expand Down
2 changes: 1 addition & 1 deletion dags/open_access/open_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def join_and_add_year(counts, **kwargs):

results = join_and_add_year(counts)

@sqlalchemy_task(conn_id="superset_qa")
@sqlalchemy_task(conn_id="superset")
def populate_open_access(results, session, **kwargs):
record = session.query(OAOpenAccess).filter_by(year=results["year"]).first()
if record:
Expand Down

0 comments on commit 1ba37db

Please sign in to comment.