Skip to content

Commit

Permalink
DH5669/reformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Apr 2, 2024
1 parent e2a6fc3 commit 06cdeb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dataherald/scripts/populate_dialect_db_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
database_connections = storage.find_all("database_connections")
for database_connection in database_connections:
if not database_connection.get("dialect"):
decrypted_uri = fernet_encrypt.decrypt(database_connection["connection_uri"])
decrypted_uri = fernet_encrypt.decrypt(
database_connection["connection_uri"]
)
dialect_prefix = DatabaseConnection.validate_uri(decrypted_uri)
dialect = DatabaseConnection.set_dialect(dialect_prefix)
storage.update_or_create(
Expand Down

0 comments on commit 06cdeb1

Please sign in to comment.