aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/arxiv.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-23 16:34:08 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-23 16:34:08 -0700
commit537db73cce0d0a71fafeeb20423491c0cb75ea7a (patch)
tree5d83b11ae8aedf7a4f54df5ae38f66e13051dc51 /python/fatcat_tools/importers/arxiv.py
parent104f1fd882216dc79bd7515e0b66834a779c1bf7 (diff)
parent9fbab0defca5016c0eb5b851ff73e03efac4fac8 (diff)
downloadfatcat-537db73cce0d0a71fafeeb20423491c0cb75ea7a.tar.gz
fatcat-537db73cce0d0a71fafeeb20423491c0cb75ea7a.zip
Merge branch 'bnewbold-import-tweaks'
Diffstat (limited to 'python/fatcat_tools/importers/arxiv.py')
-rw-r--r--python/fatcat_tools/importers/arxiv.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/arxiv.py b/python/fatcat_tools/importers/arxiv.py
index 182d0471..71b2d134 100644
--- a/python/fatcat_tools/importers/arxiv.py
+++ b/python/fatcat_tools/importers/arxiv.py
@@ -198,6 +198,7 @@ class ArxivRawImporter(EntityImporter):
# group-title
# arxiv: comments, categories, etc
extra_arxiv['base_id'] = base_id
+ extra['superceded'] = True
extra['arxiv'] = extra_arxiv
versions = []
@@ -223,11 +224,13 @@ class ArxivRawImporter(EntityImporter):
license_slug=license_slug,
abstracts=abstracts,
contribs=contribs,
- extra=extra,
+ extra=extra.copy(),
))
# TODO: assert that versions are actually in order?
assert versions
+ versions[-1].extra.pop('superceded')
+
# only apply DOI to most recent version (HACK)
if doi:
versions[-1].ext_ids.doi = doi