diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_tools/importers/crossref.py | 2 | ||||
-rw-r--r-- | python/fatcat_tools/importers/journal_metadata.py | 2 | ||||
-rw-r--r-- | python/fatcat_tools/importers/matched.py | 2 | ||||
-rw-r--r-- | python/fatcat_tools/importers/orcid.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py index 6365e491..4b9199cd 100644 --- a/python/fatcat_tools/importers/crossref.py +++ b/python/fatcat_tools/importers/crossref.py @@ -331,5 +331,5 @@ class CrossrefImporter(FatcatImporter): re.container_id = container.ident self._issnl_id_map[ce.issnl] = container.ident release_batch.append(re) - self.api.create_release_batch(release_batch, autoaccept="true") + self.api.create_release_batch(release_batch, autoaccept=True) self.counts['insert'] += len(release_batch) diff --git a/python/fatcat_tools/importers/journal_metadata.py b/python/fatcat_tools/importers/journal_metadata.py index 859662ae..aa75ad5b 100644 --- a/python/fatcat_tools/importers/journal_metadata.py +++ b/python/fatcat_tools/importers/journal_metadata.py @@ -85,5 +85,5 @@ class JournalMetadataImporter(FatcatImporter): objects = [self.parse_journal_metadata_row(l) for l in batch if (l is not None)] objects = [o for o in objects if (o is not None)] - self.api.create_container_batch(objects, autoaccept="true") + self.api.create_container_batch(objects, autoaccept=True) self.counts['insert'] += len(objects) diff --git a/python/fatcat_tools/importers/matched.py b/python/fatcat_tools/importers/matched.py index 1e5c22f7..02c0a9c5 100644 --- a/python/fatcat_tools/importers/matched.py +++ b/python/fatcat_tools/importers/matched.py @@ -154,6 +154,6 @@ class MatchedImporter(FatcatImporter): self.api.update_file(obj.ident, obj, editgroup_id=update_eg) self.api.accept_editgroup(update_eg) if len(new_objects) > 0: - self.api.create_file_batch(new_objects, autoaccept="true") + self.api.create_file_batch(new_objects, autoaccept=True) self.counts['update'] += len(update_objects) self.counts['insert'] += len(new_objects) diff --git a/python/fatcat_tools/importers/orcid.py b/python/fatcat_tools/importers/orcid.py index 0c8b1d62..d03b2855 100644 --- a/python/fatcat_tools/importers/orcid.py +++ b/python/fatcat_tools/importers/orcid.py @@ -79,5 +79,5 @@ class OrcidImporter(FatcatImporter): objects = [self.parse_orcid_dict(json.loads(l)) for l in batch if l != None] objects = [o for o in objects if o != None] - self.api.create_creator_batch(objects, autoaccept="true") + self.api.create_creator_batch(objects, autoaccept=True) self.counts['insert'] += len(objects) |