summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-01-08 03:53:19 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-01-08 03:53:19 +0100
commit5d7a7651f0ae6f66ca60930daaf194350814e5a6 (patch)
treef2cb0d97113c080142220ebfc62c5db97551401b /python/fatcat_tools
parenta7e5460d6355dd0e99b08e480d4e50755fda3b16 (diff)
downloadfatcat-5d7a7651f0ae6f66ca60930daaf194350814e5a6.tar.gz
fatcat-5d7a7651f0ae6f66ca60930daaf194350814e5a6.zip
datacite: name extra.month, extra.release_month
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/datacite.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py
index 90bc3db7..aaf1af2c 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -686,8 +686,10 @@ class DataciteImporter(EntityImporter):
# Always include datacite key, even if value is empty (dict).
extra['datacite'] = extra_datacite
+
+ # Preparation for a schema update.
if release_month:
- extra['month'] = release_month
+ extra['release_month'] = release_month
extids = self.lookup_ext_ids(doi=doi)