Skip to content

Commit

Permalink
Clearing out small redundancy for Postgres DB write
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkhamLee committed Jun 19, 2024
1 parent bec7c94 commit e063365
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions etl_pipelines/asana/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ def get_db_vars() -> dict:
return TABLE, param_dict


def get_postgres_client(TABLE, param_dict):

# get database variables, connection parameters
TABLE, param_dict = get_db_vars()
def get_postgres_client(param_dict):

return postgres_utilities.postgres_client(param_dict)

Expand Down Expand Up @@ -145,7 +142,8 @@ def main():

# get Postgres connection
TABLE, param_dict = get_db_vars()
connection = get_postgres_client(TABLE, param_dict)

connection = get_postgres_client(param_dict)

# clear table
response = postgres_utilities.clear_table(connection, TABLE)
Expand Down

0 comments on commit e063365

Please sign in to comment.