mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 04:01:40 +01:00
[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:
parent
901819359c
commit
ffb1001f80
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user