Add authentication

This commit is contained in:
hansi
2025-11-29 12:04:58 +01:00
parent fe33d714bd
commit 6158f2ddff
2 changed files with 103 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import sqlite3
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent
DB_PATH = BASE_DIR / "data" / "app.db"
def get_conn():
# check_same_thread=False, damit Streamlit mehrere Threads nutzen kann
return sqlite3.connect(DB_PATH, check_same_thread=False)