diff --git a/rattail_corepos/config.py b/rattail_corepos/config.py index d7d7666..9be588e 100644 --- a/rattail_corepos/config.py +++ b/rattail_corepos/config.py @@ -40,12 +40,12 @@ class RattailCOREPOSExtension(ConfigExtension): from corepos.db import Session as CoreSession from corepos.trans.db import Session as CoreTransSession - engines = get_engines(config, section='rattail_corepos.db') + engines = get_engines(config, section='corepos.db.office_op') config.corepos_engines = engines config.corepos_engine = engines.get('default') CoreSession.configure(bind=config.corepos_engine) - engines = get_engines(config, section='rattail_coretrans.db') + engines = get_engines(config, section='corepos.db.office_trans') config.coretrans_engines = engines config.coretrans_engine = engines.get('default') CoreTransSession.configure(bind=config.coretrans_engine)