invenio_migrator/records.py
def update_record(cls, revisions, created, record):
        """Update an existing record."""
        for timestamp, revision in revisions:
            record.model.json = revision
            record.model.created = created.replace(tzinfo=None)
            record.model.updated = timestamp.replace(tzinfo=None)
            db.session.commit()
        return Record(record.model.json, model=record.model)
def update_record(cls, revisions, created, record):
        """Update an existing record."""
        for timestamp, revision in revisions:
            record.model.json = revision
            record.model.created = created.replace(tzinfo=None)
            record.model.updated = timestamp.replace(tzinfo=None)
            db.session.commit()
        return Record(record.model.json, model=record.model)
def update_record ( cls , revisions , created , record ) : for timestamp , revision in revisions : record . model . json = revision record . model . created = created . replace ( tzinfo = None ) record . model . updated = timestamp . replace ( tzinfo = None ) db . session . commit ( ) return Record ( record . model . json , model = record . model )
Update an existing record.
Update an existing record .