Skip to content
GitLab
Explore
Sign in
OSUG
JMMC
jmmc-obsportal
Issues
#14
Cleanup DB transaction around import process
Refactor again the DB transaction worflow using a context manager.
https://book.pythontips.com/en/latest/context_managers.html
https://docs.sqlalchemy.org/en/13/orm/contextual.html
https://docs.sqlalchemy.org/en/13/orm/session_basics.html#when-do-i-construct-a-session-when-do-i-commit-it-and-when-do-i-close-it
Edited
Jan 22, 2020
by
Philippe Bollard