diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-25 16:42:28 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-25 16:42:28 -0800 |
commit | 7d55f030cadbdc213e0773a52ad52ccfbfa07cad (patch) | |
tree | 8a19720c83521e81a865dfd1a5a7a6890652e49d /python/fatcat_import.py | |
parent | 2e6e5d9b270044d3462a95512a12520650cc45af (diff) | |
download | fatcat-7d55f030cadbdc213e0773a52ad52ccfbfa07cad.tar.gz fatcat-7d55f030cadbdc213e0773a52ad52ccfbfa07cad.zip |
update journal meta import/transform
Diffstat (limited to 'python/fatcat_import.py')
-rwxr-xr-x | python/fatcat_import.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/fatcat_import.py b/python/fatcat_import.py index a47aa175..8d952067 100755 --- a/python/fatcat_import.py +++ b/python/fatcat_import.py @@ -24,7 +24,7 @@ def run_orcid(args): def run_journal_metadata(args): fii = JournalMetadataImporter(args.api, edit_batch_size=args.batch_size) - CsvLinePusher(fii, args.csv_file).run() + JsonLinePusher(fii, args.json_file).run() def run_matched(args): fmi = MatchedImporter(args.api, @@ -93,8 +93,8 @@ def main(): func=run_journal_metadata, auth_var="FATCAT_AUTH_WORKER_JOURNAL_METADATA", ) - sub_journal_metadata.add_argument('csv_file', - help="Journal ISSN CSV metadata file to import from (or stdin)", + sub_journal_metadata.add_argument('json_file', + help="Journal JSON metadata file to import from (or stdin)", default=sys.stdin, type=argparse.FileType('r')) sub_journal_metadata.add_argument('--batch-size', help="size of batch to send", |