in backend/bms_app/source_db/services.py [0:0]
def db_type(self, data, many, **kwargs):
if 'db_engine' in data and data['db_engine'] != 'ORACLE':
data['db_type'] = None
elif 'rac_nodes' in data and data['rac_nodes']:
data['db_type'] = SourceDBType.RAC
else:
data['db_type'] = SourceDBType.SI
print(data)
return data