Skip to content

Commit

Permalink
[fix] engine wikidata - WIKIDATA_UNITS has been changed in #3378
Browse files Browse the repository at this point in the history
This patch is a leftover from [1] in which the WIKIDATA_UNITS values has become
a dictionary.

[1] #3378

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
  • Loading branch information
return42 committed May 10, 2024
1 parent 9018193 commit ffb1001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion searx/engines/wikidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit ffb1001

Please sign in to comment.