def set_config(cfg): """""" # from quantdigger.datasource.data import locd # if 'source' in cfg: # cfg['source'] = cfg['source'].lower() # assert(cfg['source'] in ['sqlite', 'csv', 'mongodb']) settings.update(cfg)
def set_config(cfg): """""" from quantdigger.datasource.data import locd if 'source' in cfg: cfg['source'] = cfg['source'].lower() assert(cfg['source'] in ['sqlite', 'csv']) settings.update(cfg) locd.set_source(settings)