From 021c0c223f184a9009a1604276a5718751d8dd2e Mon Sep 17 00:00:00 2001 From: Dennis Priskorn <68460690+dpriskorn@users.noreply.github.com> Date: Fri, 25 Feb 2022 11:14:21 +0100 Subject: [PATCH] Move extra message to INFO. Prepare 0.3-alpha1 --- setup.cfg | 2 +- src/helpers/jobs.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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(