This commit is contained in:
2026-05-26 08:23:10 +02:00
parent 7c29394145
commit 6e7dabeb40
2 changed files with 13 additions and 4 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ def get_medicus_connection():
"Z230": r"reporter:c:\medicus\medicus.fdb",
}
dsn = dsn_map.get(computer_name, r"localhost:c:\medicus 3\data\medicus.fdb")
print(f"[medicus_db] Připojuji se jako {computer_name}{dsn}")
import sys
print(f"[medicus_db] Pripojuji se jako {computer_name} -> {dsn}", file=sys.stderr, flush=True)
return fdb.connect(dsn=dsn, user="SYSDBA", password="masterkey", charset="win1250")