[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

View File

@@ -0,0 +1,14 @@
from sqlalchemy.orm import Session
from ....schema.library.library import Library
import logging
logger = logging.getLogger(__name__)
def create(session:Session, library:Library):
logger.debug("Add Library")
session.add(library)
logger.debug("Added Library")
session.commit()
logger.debug("Committed Library")
session.refresh(library)
logger.debug("Rerfreshed Library")