From d700fb40e226277832304871f97d3e2e74e3340c Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Wed, 12 Nov 2025 14:17:20 +0100 Subject: [PATCH] fix prod. link --- src/server/BreCal/local_db.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/BreCal/local_db.py b/src/server/BreCal/local_db.py index ed154fd..4bb15c5 100644 --- a/src/server/BreCal/local_db.py +++ b/src/server/BreCal/local_db.py @@ -23,7 +23,7 @@ def _build_pool_config(connection_data, pool_name, pool_size): return pool_config -def initPool(instancePath, connection_filename="connection_data_devel.json", +def initPool(instancePath, connection_filename="connection_data_prod.json", pool_name="brecal_pool", pool_size=10): """ Initialize the MySQL connection pool and load email credentials. @@ -33,7 +33,7 @@ def initPool(instancePath, connection_filename="connection_data_devel.json", if config_path is None: config_path = os.path.join(instancePath, f'../../../secure/{connection_filename}') - config_path = 'C:\\temp\\connection_data_test.json' + # config_path = 'C:\\temp\\connection_data_test.json' print(config_path) if not os.path.exists(config_path): @@ -54,10 +54,10 @@ def initPool(instancePath, connection_filename="connection_data_devel.json", finally: conn_from_pool.close() - credentials_file = "email_credentials_devel.json" + credentials_file = "email_credentials_test.json" credentials_path = os.path.join(instancePath, f'../../../secure/{credentials_file}') - credentials_path = 'C:\\temp\\email_credentials_test.json' + # credentials_path = 'C:\\temp\\email_credentials_test.json' if not os.path.exists(credentials_path): print('cannot find ' + os.path.abspath(credentials_path))