diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-05-10 15:42:17 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-05-10 16:04:27 +0200 |
commit | ffb1001f803359a590bbbaf62da6b1fa1456ed16 (patch) | |
tree | 55d90c7221ecf121919f4360f08cb89ab387444b | |
parent | 901819359c359aec5a4476ae1c1e575f997c0db6 (diff) | |
download | searxng-ffb1001f803359a590bbbaf62da6b1fa1456ed16.tar.gz searxng-ffb1001f803359a590bbbaf62da6b1fa1456ed16.zip |
[fix] engine wikidata - WIKIDATA_UNITS has been changed in #3378
This patch is a leftover from [1] in which the WIKIDATA_UNITS values has become
a dictionary.
[1] https://github.com/searxng/searxng/pull/3378
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r-- | searx/engines/wikidata.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/wikidata.py b/searx/engines/wikidata.py index 268da6fa9..7a8539f22 100644 --- a/searx/engines/wikidata.py +++ b/searx/engines/wikidata.py @@ -762,7 +762,8 @@ def debug_explain_wikidata_query(query, method='GET'): def init(engine_settings=None): # pylint: disable=unused-argument # WIKIDATA_PROPERTIES : add unit symbols - WIKIDATA_PROPERTIES.update(WIKIDATA_UNITS) + for k, v in WIKIDATA_UNITS.items(): + WIKIDATA_PROPERTIES[k] = v['symbol'] # WIKIDATA_PROPERTIES : add property labels wikidata_property_names = [] |