[REF] Refactor

This commit is contained in:
2026-02-13 13:35:18 +01:00
parent b00c35f19b
commit dc819b1674
29 changed files with 101 additions and 80 deletions

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

@@ -0,0 +1,9 @@
from sqlalchemy.orm import Session
from sqlalchemy import select
from ....schema.library.env import Env
def read(session:Session, _id:int):
stmt = select(Env).where(Env.id == _id)
env:Env = session.scalars(stmt).one()
return env