[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>
This commit is contained in:
Markus Heiser 2024-05-10 15:42:17 +02:00 committed by Markus Heiser
parent 901819359c
commit ffb1001f80

View file

@ -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 = []