invenio_migrator/legacy/records.py
def _get_modified_recids_invenio2(from_date):
    """Get record ids for Invenio 2."""
    from invenio.legacy.search_engine import search_pattern
    from invenio.modules.records.models import Record

    date = datetime.datetime.strptime(from_date, '%Y-%m-%d %H:%M:%S')
    return set(
        (x[0]
         for x in Record.query.filter(Record.modification_date >= date).values(
             Record.id))), search_pattern
def _get_modified_recids_invenio2(from_date):
    from invenio.legacy.search_engine import search_pattern
    from invenio.modules.records.models import Record

    date = datetime.datetime.strptime(from_date, '%Y-%m-%d %H:%M:%S')
    return set(
        (x[0]
         for x in Record.query.filter(Record.modification_date >= date).values(
             Record.id))), search_pattern
def _get_modified_recids_invenio2 ( from_date ) : from invenio . legacy . search_engine import search_pattern from invenio . modules . records . models import Record date = datetime . datetime . strptime ( from_date , '%Y-%m-%d %H:%M:%S' ) return set ( ( x [ 0 ] for x in Record . query . filter ( Record . modification_date >= date ) . values ( Record . id ) ) ) , search_pattern
Get record ids for Invenio 2.
Get record ids for Invenio 2 .