fix: avoid deprecated reference to app db engine

This commit is contained in:
Lance Edgar 2024-08-19 14:38:41 -05:00
parent b762a0782a
commit d29b840343

View file

@ -63,8 +63,8 @@ def make_rattail_config(settings):
settings['wutta_config'] = rattail_config
# configure database sessions
if hasattr(rattail_config, 'rattail_engine'):
tailbone.db.Session.configure(bind=rattail_config.rattail_engine)
if hasattr(rattail_config, 'appdb_engine'):
tailbone.db.Session.configure(bind=rattail_config.appdb_engine)
if hasattr(rattail_config, 'trainwreck_engine'):
tailbone.db.TrainwreckSession.configure(bind=rattail_config.trainwreck_engine)
if hasattr(rattail_config, 'tempmon_engine'):