mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 19:01:00 +00:00
utils/fetch_languages.py: print more meaningfull messages
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
de179ecc5b
commit
1510382558
1 changed files with 2 additions and 2 deletions
|
@ -28,10 +28,10 @@ def fetch_supported_languages():
|
||||||
names.sort()
|
names.sort()
|
||||||
|
|
||||||
for engine_name in names:
|
for engine_name in names:
|
||||||
print("fetching languages of engine %s" % engine_name)
|
|
||||||
|
|
||||||
if hasattr(engines[engine_name], 'fetch_supported_languages'):
|
if hasattr(engines[engine_name], 'fetch_supported_languages'):
|
||||||
engines_languages[engine_name] = engines[engine_name].fetch_supported_languages()
|
engines_languages[engine_name] = engines[engine_name].fetch_supported_languages()
|
||||||
|
print("fetched %s languages from engine %s" % (
|
||||||
|
len(engines_languages[engine_name]), engine_name))
|
||||||
if type(engines_languages[engine_name]) == list:
|
if type(engines_languages[engine_name]) == list:
|
||||||
engines_languages[engine_name] = sorted(engines_languages[engine_name])
|
engines_languages[engine_name] = sorted(engines_languages[engine_name])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue