mirror of
https://github.com/searxng/searxng.git
synced 2024-11-13 13:41:03 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue