We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b98c81f commit 3f09b00Copy full SHA for 3f09b00
scripts/restore-arxiv-preprint-date/script.py
@@ -17,7 +17,7 @@ def check(record, logger, state):
17
@staticmethod
18
def do(record, logger, state):
19
current_preprint_date = record["preprint_date"]
20
- for revision_id in range(2, record.revision_id):
+ for revision_id in range(2, record.revision_id + 2):
21
preprint_date = record.revisions[-revision_id].get("preprint_date")
22
if preprint_date and preprint_date != current_preprint_date:
23
record["preprint_date"] = preprint_date
0 commit comments