diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-01-17 17:47:11 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-01-17 17:48:00 -0800 |
commit | 96123dfc554f7959a5c7008b9eebf7bbec37c437 (patch) | |
tree | bbb32ab62361dfb92f9842f2d009b4af39cb92e8 /python | |
parent | 41c096a435d04dfbb6705542fb3565ac951acae9 (diff) | |
download | fatcat-96123dfc554f7959a5c7008b9eebf7bbec37c437.tar.gz fatcat-96123dfc554f7959a5c7008b9eebf7bbec37c437.zip |
actually control pubmed updates with a flag
Diffstat (limited to 'python')
-rwxr-xr-x | python/fatcat_import.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_import.py b/python/fatcat_import.py index 5b97d3a8..07bb83a9 100755 --- a/python/fatcat_import.py +++ b/python/fatcat_import.py @@ -42,6 +42,7 @@ def run_pubmed(args): pi = PubmedImporter(args.api, args.issn_map_file, edit_batch_size=args.batch_size, + do_updates=args.do_updates) lookup_refs=(not args.no_lookup_refs)) if args.kafka_mode: raise NotImplementedError @@ -276,6 +277,9 @@ def main(): sub_pubmed.add_argument('--no-lookup-refs', action='store_true', help="skip lookup of references (PMID or DOI)") + sub_pubmed.add_argument('--do-updates', + action='store_true', + help="update pre-existing release entities") sub_pubmed.add_argument('--kafka-mode', action='store_true', help="consume from kafka topic (not stdin)") |