[WIP] Testing and reformuling
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
from sqlalchemy.orm import Session
|
||||
from .....schema.config.library import LibraryConfig
|
||||
from .....schema.config.library import Library
|
||||
|
||||
def create(session:Session, library:LibraryConfig):
|
||||
import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def create(session:Session, library:Library):
|
||||
logger.debug("Add Library")
|
||||
session.add(library)
|
||||
session.commit()
|
||||
logger.debug("Added Library")
|
||||
session.commit()
|
||||
logger.debug("Committed Library")
|
||||
session.refresh(library)
|
||||
logger.debug("Rerfreshed Library")
|
||||
|
||||
Reference in New Issue
Block a user