(minor) search memoization + context (#2732)

* add markdown blocks to search

* nit

* k
This commit is contained in:
pablodanswer
2024-10-19 12:13:21 -07:00
committed by GitHub
parent ee1cb084ac
commit 8f9d4335ce
2 changed files with 19 additions and 14 deletions

View File

@@ -346,6 +346,7 @@ def get_session() -> Generator[Session, None, None]:
raise HTTPException(status_code=401, detail="User must authenticate")
engine = get_sqlalchemy_engine()
with Session(engine, expire_on_commit=False) as session:
if MULTI_TENANT:
if not is_valid_schema_name(tenant_id):