invenio_migrator/legacy/records.py
def get(query, from_date, **kwargs):
    """Get recids matching query and with changes."""
    recids, search_pattern = get_modified_recids(from_date)
    recids = recids.union(get_modified_bibdoc_recids(from_date))

    if query:
        recids = recids.intersection(
            set(search_pattern(p=query.encode('utf-8'))))

    return len(recids), recids
def get(query, from_date, **kwargs):
    recids, search_pattern = get_modified_recids(from_date)
    recids = recids.union(get_modified_bibdoc_recids(from_date))

    if query:
        recids = recids.intersection(
            set(search_pattern(p=query.encode('utf-8'))))

    return len(recids), recids
def get ( query , from_date , * * kwargs ) : recids , search_pattern = get_modified_recids ( from_date ) recids = recids . union ( get_modified_bibdoc_recids ( from_date ) ) if query : recids = recids . intersection ( set ( search_pattern ( p = query . encode ( 'utf-8' ) ) ) ) return len ( recids ) , recids
Get recids matching query and with changes.
Get recids matching query and with changes .