diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 18:01:27 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 18:01:27 -0700 |
commit | 7c18e1d22b16bb920c9bb9a788691820bbdb2bfa (patch) | |
tree | 0e623bc4442f8a36267607a8f32106a3f241ee9c /python/fatcat_tools/importers/crossref.py | |
parent | 1e0e890284978dc7379db707ed1fa2c902e297c6 (diff) | |
download | fatcat-7c18e1d22b16bb920c9bb9a788691820bbdb2bfa.tar.gz fatcat-7c18e1d22b16bb920c9bb9a788691820bbdb2bfa.zip |
python impl
Diffstat (limited to 'python/fatcat_tools/importers/crossref.py')
-rw-r--r-- | python/fatcat_tools/importers/crossref.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py index 443879e7..9b1cd2c3 100644 --- a/python/fatcat_tools/importers/crossref.py +++ b/python/fatcat_tools/importers/crossref.py @@ -467,8 +467,9 @@ class CrossrefImporter(EntityImporter): return True def insert_batch(self, batch): - self.api.create_release_batch(batch, - autoaccept=True, - description=self.editgroup_description, - extra=json.dumps(self.editgroup_extra)) + self.api.create_release_auto_batch(fatcat_client.ReleaseAutoBatch( + editgroup=fatcat_client.Editgroup( + description=self.editgroup_description, + extra=self.editgroup_extra), + entity_list=batch)) |