style: run python linter & prettifier on backend code

This commit is contained in:
2026-03-25 19:34:43 +00:00
parent aae10c4d9d
commit 376773a0cc
17 changed files with 408 additions and 315 deletions

View File

@@ -22,8 +22,10 @@ class PostgresConnector:
database=os.getenv("POSTGRES_DB", "postgres"),
)
except psycopg2.OperationalError as e:
raise DatabaseNotConfiguredException(f"Ensure database is up and running: {e}")
raise DatabaseNotConfiguredException(
f"Ensure database is up and running: {e}"
)
self.connection.autocommit = False
def execute(self, query, params=None, fetch=False) -> list:
@@ -48,4 +50,4 @@ class PostgresConnector:
def close(self):
if self.connection:
self.connection.close()
self.connection.close()