From 6c8db228a01fc9836c08e416f9207b7a794087f6 Mon Sep 17 00:00:00 2001 From: radumas Date: Mon, 2 Oct 2023 19:50:38 +0000 Subject: [PATCH] #714 bugfix with con context mgr --- dags/pull_wys.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dags/pull_wys.py b/dags/pull_wys.py index c332d0ac0..0ef8b31fa 100644 --- a/dags/pull_wys.py +++ b/dags/pull_wys.py @@ -112,8 +112,7 @@ def read_google_sheets(): cred = wys_api_hook.get_credentials() service = build('sheets', 'v4', credentials=cred, cache_discovery=False) - with wys_postgres.get_conn() as con: - read_masterlist(con, service) + read_masterlist(wys_postgres.get_conn(), service) pull_wys() pull_schedules()