This commit is contained in:
2025-10-03 15:49:08 +02:00
parent 3d3784ce58
commit 7fbeba5a1d
3 changed files with 316 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ def get_medicus_connection():
fdb.Connection object on success
None on failure
"""
if socket.gethostname().strip()=="NTBVBHP470G10":
if socket.gethostname().strip() in ("NTBVBHP470G10","Z230"):
MEDICUS_CFG = dict(
dsn=r"192.168.1.4:z:\medicus 3\data\medicus.fdb",
user="SYSDBA",
@@ -50,7 +50,7 @@ def get_mysql_connection():
"""
Return a PyMySQL connection or None if the connection fails.
"""
if socket.gethostname().strip() == "NTBVBHP470G10":
if socket.gethostname().strip() in ("NTBVBHP470G10","Z230"):
MYSQL_CFG = dict(
host="192.168.1.76",
port=3307,