diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-01-31 01:44:11 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-01-31 01:44:11 +0100 |
commit | 706a2d388f22ada2e3c88b7c58d3a74b1290a6a0 (patch) | |
tree | 5abcb4a31d24d621cc860b259e591ccdb849c705 /python | |
parent | 046630521f7d3134c9197f5eeae9077154f21991 (diff) | |
download | fatcat-706a2d388f22ada2e3c88b7c58d3a74b1290a6a0.tar.gz fatcat-706a2d388f22ada2e3c88b7c58d3a74b1290a6a0.zip |
datacite: do not skip records w/o date
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_tools/importers/datacite.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index 82ed5a0c..f1049909 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -319,8 +319,7 @@ class DataciteImporter(EntityImporter): release_date, release_month, release_year = parse_single_date(attributes.get('published')) if not any((release_date, release_month, release_year)): - print('[{}] skipping record w/o date: {}'.format(doi, obj), file=sys.stderr) - return False + print('[{}] record w/o date: {}'.format(doi, obj), file=sys.stderr) # Start with clear stages, e.g. published. TODO(martin): we could # probably infer a bit more from the relations, e.g. |