[WIP] Work in progress

This commit is contained in:
2026-02-08 11:20:42 +01:00
parent bd135f2265
commit a2fa1c7c9b
34 changed files with 159 additions and 2 deletions

11
app/api/config/cruds/env/read.py vendored Normal file
View File

@@ -0,0 +1,11 @@
import os
from sqlalchemy.orm import Session
from sqlalchemy import select
from .....schema.config.env import Env
def read(session:Session, _id:int):
stmt = select(Env).where(Env.id == _id)
env:Env = session.scalars(stmt).one()
os.environ[env.key] = env.value
return env