notebook vb

This commit is contained in:
2026-03-14 07:45:53 +01:00
parent d6cb2b4490
commit a599b6741b
38 changed files with 15 additions and 17 deletions

18
Trash/02 Zapis dekurs.py Normal file
View File

@@ -0,0 +1,18 @@
import fdb
from datetime import date
import funkce
# Connect to the Firebird database
conn = fdb.connect(
dsn=r'localhost:c:\medicus 3\data\medicus.fdb', # Database path
user='SYSDBA', # Username
password="masterkey", # Password,
charset="win1250")
cur = conn.cursor()
cur.execute("delete from dekurs where idpac=9742")
conn.commit()
print(funkce.zapis_dekurs(conn, cur, 9742, 2, 6, 2, 3, "Příloha.pdf", "test text", date(2023, 10, 15), date(2023, 10, 15)))
print(funkce.zapis_dekurs(conn, cur, 9742, 2, 6, 2, 3, "Příloha.pdf", "test text", date(2023, 10, 15), date(2023, 10, 15)))