Add user specific profiles
Some checks failed
Run Tests / run-tests (push) Failing after 58s

This commit is contained in:
2026-04-28 21:04:52 +02:00
parent f750cfa8e1
commit bd9ff7191a
12 changed files with 294 additions and 36 deletions

View File

@@ -5,7 +5,7 @@ from sqlalchemy.sql import text
from streamlit.connections import BaseConnection
def connection() -> BaseConnection:
_connection = st.connection("sql", url=getenv('DATABASE_URL'))
_connection = st.connection("sql", url=getenv('DATABASE_URL'), ttl=0, autocommit=True)
with _connection.session as configured_session:
configured_session.execute(text('PRAGMA foreign_keys=ON'))
return _connection