This commit is contained in:
michaela.buzalkova
2026-04-22 08:12:52 +02:00
parent 09e5eb9a9d
commit 4e0d768825
3 changed files with 56 additions and 1 deletions
+3 -1
View File
@@ -27,6 +27,7 @@ from pdf2image import convert_from_path
sys.path.insert(0, str(Path(__file__).parent.parent))
from Knihovny.najdi_dropbox import get_dropbox_root
from Knihovny.najdi_medicus import get_medicus_config
POPPLER_PATH = r"C:/Poppler/Library/bin"
CORRECTIONS_FILE = Path(__file__).parent / "corrections.json"
@@ -97,8 +98,9 @@ def check_duplicates(rc: str, datum: str) -> list[str]:
def _medicus_connect():
try:
import fdb
cfg = get_medicus_config()
return fdb.connect(
dsn=r"localhost:c:\medicus 3\data\medicus.fdb",
dsn=cfg.dsn,
user="SYSDBA", password="masterkey", charset="win1250"
)
except Exception as e: