invenio_migrator/cli.py
def loaddeposit(sources, depid):
    """Load deposit.

    Usage:
        invenio dumps loaddeposit ~/data/deposit_dump_*.json
        invenio dumps loaddeposit -d 12345 ~/data/deposit_dump_*.json
    """
    from .tasks.deposit import load_deposit
    if depid is not None:
        def pred(dep):
            return int(dep["_p"]["id"]) == depid
        loadcommon(sources, load_deposit, predicate=pred, asynchronous=False)
    else:
        loadcommon(sources, load_deposit)
def loaddeposit(sources, depid):
    """Load deposit.

    Usage:
        invenio dumps loaddeposit ~/data/deposit_dump_*.json
        invenio dumps loaddeposit -d 12345 ~/data/deposit_dump_*.json
    """
    from .tasks.deposit import load_deposit
    if depid is not None:
        def pred(dep):
            return int(dep["_p"]["id"]) == depid
        loadcommon(sources, load_deposit, predicate=pred, asynchronous=False)
    else:
        loadcommon(sources, load_deposit)
Load deposit.

    Usage:
        invenio dumps loaddeposit ~/data/deposit_dump_*.json
        invenio dumps loaddeposit -d 12345 ~/data/deposit_dump_*.json