예제 #1
0
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)
예제 #2
0
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)