From 96123dfc554f7959a5c7008b9eebf7bbec37c437 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 17 Jan 2020 17:47:11 -0800 Subject: actually control pubmed updates with a flag --- python/fatcat_import.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/fatcat_import.py') 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)") -- cgit v1.2.3