fix & update test config

This commit is contained in:
2025-10-26 11:03:45 +01:00
parent 044ccfca54
commit 1d7d33df0b
5 changed files with 10 additions and 6 deletions

View File

@@ -18,9 +18,12 @@ Questa è la documentazione automatica dell'applicazione Python ASE per la gesti
- personalizzazione dei file env:
- env/db.ini
- env/elab.ini
- env/email.ini
- env/ftp.ini
- env/load.ini
- env/elab.ini
- env/send.ini
- esecuzione del server FTP -> "python ftp_csv_receiver.py"
- esecuzione dell'orchestratore del caricamenti dei file csv -> "python load_orchestrator.py"

4
env/config.ini vendored
View File

@@ -1,6 +1,6 @@
[mysql]
host = 10.211.114.173
host = mysql-ase.incus
database = ase_lar
user = root
user = alex
password = batt1l0

4
env/db.ini vendored
View File

@@ -2,9 +2,9 @@
# python3 -c 'from hashlib import sha256;print(sha256("????password???".encode("UTF-8")).hexdigest())'
[db]
hostname = 10.211.114.173
hostname = mysql-ase.incus
port = 3306
user = root
user = alex
password = batt1l0
dbName = ase_lar
maxRetries = 10

View File

@@ -7,7 +7,7 @@ requires-python = ">=3.12"
dependencies = [
"aiomysql>=0.2.0",
"cryptography>=45.0.3",
# mysql-connector-python moved to legacy group - only needed for old_scripts
"mysql-connector-python>=9.3.0", # Needed for synchronous DB connections (ftp_csv_receiver.py, load_ftp_users.py)
"pyftpdlib>=2.0.1",
"pyproj>=3.7.1",
"utm>=0.8.1",

View File

@@ -12,7 +12,8 @@ def connetti_db(cfg: object) -> object:
Establishes a synchronous connection to a MySQL database.
DEPRECATED: Use connetti_db_async() for async code.
This function is kept for backward compatibility with old_scripts only.
This function is kept for backward compatibility with synchronous code
(e.g., ftp_csv_receiver.py which uses pyftpdlib).
Args:
cfg: A configuration object containing database connection parameters.