Tweak how global DB session is created

no need to specify "record changes" flag here
This commit is contained in:
Lance Edgar 2020-10-13 16:56:05 -05:00
parent 9af7e38219
commit d80844c1ed

View file

@ -35,7 +35,7 @@ from rattail.db import SessionBase
from rattail.db.continuum import versioning_manager
Session = scoped_session(sessionmaker(class_=SessionBase, rattail_config=None, rattail_record_changes=False, expire_on_commit=False))
Session = scoped_session(sessionmaker(class_=SessionBase, rattail_config=None, expire_on_commit=False))
# not necessarily used, but here if you need it
TempmonSession = scoped_session(sessionmaker())