Skip to content

Commit

Permalink
fix: the correct handling is done in the iterator
Browse files Browse the repository at this point in the history
* the thinking of handling negative revision numbers in this line with
  the list was wrong
  • Loading branch information
utnapischtim committed Dec 15, 2024
1 parent 9ef7c72 commit 23d53c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_records/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 23d53c2

Please sign in to comment.