From e76aa9a966cad1a9900c8f81463fc031d6e2e215 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 10 Oct 2019 20:13:39 -0500 Subject: [PATCH] Change the sections used for corepos db config --- rattail_corepos/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)