def set_zenodo(ctx, production):
    """Add Zenodo details: api urls, communities, to context object

    Parameters
    ----------
    ctx: dict
        Click context obj to pass arguments onto sub-commands
    production: bool
        If True using production api, if False using sandbox

    Returns
    -------
    ctx: dict
        Click context obj to pass arguments onto sub-commands
    """

    if production:
        base_url = 'https://zenodo.org/api'
    else:
        base_url = 'https://sandbox.zenodo.org/api'
    # removing this for the moment as this doesn't filter based on user
    #can lead to list all the zenodo if used without
    ctx.obj['url'] = f'{base_url}/records'
    ctx.obj['deposit'] = f'{base_url}/deposit/depositions'
    ctx.obj['community'] = '&community='
    return ctx