Skip to content

Commit

Permalink
Debugging BCTS access management
Browse files Browse the repository at this point in the history
  • Loading branch information
smunthik committed Nov 20, 2024
1 parent ec7b132 commit 50e2971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/bcts_access_management/bcts_acces_apply_grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def apply_grants():
all_statements = []
for _, row in df.iterrows():
all_statements.extend(generate_grant_statements(row))
logging.info(all_statements)
# Execute the grant statements in PostgreSQL
# Execute the grant statements in PostgreSQL
with engine.begin() as connection:
for statement in all_statements:
logging.info(statement)
connection.execute(text(statement))

logging.info("Grant statements executed successfully.")
Expand Down

0 comments on commit 50e2971

Please sign in to comment.