@db.command('export')
@click.argument('task_type', type=click.Choice(TASKS_TYPES.keys()))
@click.argument('path',
                type=click.Path(file_okay=True,
                                writable=True,
                                resolve_path=True))
@click.option('--batch',
              default=app.config['DEFAULT_BATCH'],
              type=click.Choice(_batches.batches_list()),
              help='Specify the batch id tasks should be loaded into')
@click.option('--export-all', 'export_all', default=False, is_flag=True)
def export(task_type, path, batch, export_all):
    _db.export_tasks(TASKS_TYPES[task_type], path, batch, not export_all)
Exports answers on closed tasks to json.
dataset/ETHPy150Open mrgambal/vulyk/vulyk/control.py/export