update scripts to use Postgres

This commit is contained in:
Thomas Peetz
2025-05-01 01:13:49 +02:00
parent 72c1a7d265
commit 7ff2bf912d
12 changed files with 110 additions and 45 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ def get_database_cursors(log, config: str):
password=db_config['mariadb']['password'],
database=db_config['mariadb']['database']
)
postgres_conn = psycopg2.connect(f"host={db_config['postgres']['host']} port={db_config['postgres']['port']} user={db_config['postgres']['user']} password={db_config['postgres']['password']} dbname={db_config['postgres']['']}")
postgres_conn = psycopg2.connect(f"host={db_config['postgres']['host']} port={db_config['postgres']['port']} user={db_config['postgres']['user']} password={db_config['postgres']['password']} dbname={db_config['postgres']['database']}")
return sqlite_conn, mariadb_conn, postgres_conn