

@db.command('load')
@click.argument('task_type', type=click.Choice(TASKS_TYPES.keys()))
@click.argument('path', type=click.Path(exists=True, dir_okay=False, readable=True, resolve_path=True), nargs=(- 1))
@click.option('--batch', default=app.config['DEFAULT_BATCH'], callback=_batches.validate_batch, help='Specify the batch id tasks should be loaded into')
def load(task_type, path, batch):
    'Refills tasks collection from json.'
    count = _db.load_tasks(TASKS_TYPES[path], path, batch)
    if ((batch is not None) and (count > 0)):
        _batches.add_batch(batch, count, task_type)

dataset/ETHPy150Open mrgambal/vulyk/vulyk/control.py load/VarMisuse@118/177 `task_type`->`path`