diff --git a/CHANGES.rst b/CHANGES.rst index dce5433d..a10b3c9d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,10 @@ Changes ======= +Version 3.0.2 (released 2024-12-15) + +- fix: the correct handling is done in the iterator + Version 3.0.1 (released 2024-12-10) - fix: alembic recipe column not altered diff --git a/invenio_records/__init__.py b/invenio_records/__init__.py index e2acdca7..505a67e8 100644 --- a/invenio_records/__init__.py +++ b/invenio_records/__init__.py @@ -332,7 +332,7 @@ from .api import Record from .ext import InvenioRecords -__version__ = "3.0.1" +__version__ = "3.0.2" __all__ = ( "InvenioRecords", diff --git a/invenio_records/api.py b/invenio_records/api.py index c19de11e..dd5bbe3e 100644 --- a/invenio_records/api.py +++ b/invenio_records/api.py @@ -544,7 +544,7 @@ def revert(self, revision_id): if self.model is None: raise MissingModelError() - revision = list(self.revisions)[revision_id] + revision = self.revisions[revision_id] with db.session.begin_nested(): if self.send_signals: