This commit is contained in:
2025-10-04 12:54:54 +02:00
parent e88167fe33
commit 5d377c822c
3 changed files with 82 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
import os,re,fdb,time
import logging
from FunkceWhereIsDropbox import get_dropbox_path,get_medicus_connection
logging.basicConfig(level=logging.DEBUG)
@@ -16,14 +17,12 @@ def set_single_page_view (filepdfin):
# Connect to the Firebird database
conn = fdb.connect(
dsn=r'192.168.1.10:m:\medicus\data\medicus.fdb', # Database path
user='SYSDBA', # Username
password="masterkey", # Password,
charset="win1250")
# cur = conn.cursor()
conn = get_medicus_connection()
cesta=r"z:\dropbox\ordinace\Dokumentace_ke_zpracování"
#Get cesta to Dropbox on working computer
dropbox=get_dropbox_path()
cesta=dropbox/"Ordinace"/"Dokumentace_ke_zpracování"
cestazpracovana=dropbox/"Ordinace"/"Dokumentace_zpracovaná"
for file in os.listdir(cesta):
if file.upper().endswith((".PDF")) and os.path.isfile(os.path.join(cesta,file)):