diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-01-07 01:57:47 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-01-07 01:57:47 +0100 |
commit | d3a1382795d14ac77165fa6eb39e893b03b97215 (patch) | |
tree | 666fa81d5ae9fcae4d7280f4741c730f123b002e | |
parent | 5b796406a975b50afb88863691cdfaeca55fddcc (diff) | |
download | fatcat-d3a1382795d14ac77165fa6eb39e893b03b97215.tar.gz fatcat-d3a1382795d14ac77165fa6eb39e893b03b97215.zip |
datacite: fix typos
-rwxr-xr-x | python/fatcat_import.py | 2 | ||||
-rw-r--r-- | python/fatcat_tools/importers/datacite.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_import.py b/python/fatcat_import.py index 6b04d547..ea7e12f2 100755 --- a/python/fatcat_import.py +++ b/python/fatcat_import.py @@ -175,7 +175,7 @@ def run_datacite(args): extid_map_file=args.extid_map_file, insert_log_file=args.insert_log_file) if args.kafka_mode: - KafkaJsonPusher(fci, args.kafka_hosts, args.kafka_env, "api-datacite", + KafkaJsonPusher(dci, args.kafka_hosts, args.kafka_env, "api-datacite", "fatcat-import", consume_batch_size=args.batch_size).run() else: JsonLinePusher(dci, args.json_file).run() diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index 936b6f1b..53f46bb4 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -699,7 +699,7 @@ class DataciteImporter(EntityImporter): if self.insert_log_file: with open(self.insert_log_file, 'a') as f: for doc in batch: - json.dump(entity_to_dict(re, api_client=None), f) + json.dump(entity_to_dict(doc, api_client=None), f) f.write('\n') self.api.create_release_auto_batch( fatcat_openapi_client.ReleaseAutoBatch( |