Fix DB engine config references

This commit is contained in:
Lance Edgar 2022-04-04 21:28:12 -05:00
parent 149f5be052
commit 35cdebbf18

View file

@ -122,11 +122,11 @@ class CoreOfficeMasterView(CoreMasterView):
def get_db_engines(self):
engines = OrderedDict()
if self.rattail_config.core_office_engine:
engines['default'] = self.rattail_config.core_office_engine
for dbkey in self.rattail_config.core_office_engines:
if self.rattail_config.core_office_op_engine:
engines['default'] = self.rattail_config.core_office_op_engine
for dbkey in self.rattail_config.core_office_op_engines:
if dbkey != 'default':
engines[dbkey] = self.rattail_config.core_office_engines[dbkey]
engines[dbkey] = self.rattail_config.core_office_op_engines[dbkey]
return engines
@property