From 4526ab2d80601a0bcdff8632ca8cd8e4a64f5540 Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Sun, 15 Dec 2024 21:11:52 +0100 Subject: [PATCH 1/2] fix: the correct handling is done in the iterator * the thinking of handling negative revision numbers in this line with the list was wrong --- invenio_records/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From 11f2ba21d327248f7c3d3280baf3763292a8e1e7 Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Sun, 15 Dec 2024 21:32:34 +0100 Subject: [PATCH 2/2] release: v3.0.2 --- CHANGES.rst | 4 ++++ invenio_records/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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",