diff --git a/setup.cfg b/setup.cfg index 2396e76..622e18f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = itemsubjector -version = 0.3-alpha0 +version = 0.3-alpha1 author = Dennis Priskorn author_email = dp_public@riseup.net description = CLI-tool to easily add "main subject" aka topics in bulk to groups of items on Wikidata diff --git a/src/helpers/jobs.py b/src/helpers/jobs.py index aa1f6ac..5a6eaf6 100644 --- a/src/helpers/jobs.py +++ b/src/helpers/jobs.py @@ -5,6 +5,7 @@ import random from typing import Union, List, TYPE_CHECKING, Optional +import config from src import ( strip_prefix, print_best_practice, @@ -59,7 +60,8 @@ def process_qid_into_job( if not answer: return None suggestion.extract_search_strings() - suggestion.print_search_strings() + if config.loglevel == logging.INFO: + suggestion.print_search_strings() if suggestion.search_strings is None: raise ValueError("suggestion.search_strings was None") with console.status(