mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 04:00:02 +00:00
[fix] wikidata: using only the first url
This commit is contained in:
@@ -163,7 +163,8 @@ def get_string(claims, propertyName, defaultValue=None):
|
|||||||
if len(result) == 0:
|
if len(result) == 0:
|
||||||
return defaultValue
|
return defaultValue
|
||||||
else:
|
else:
|
||||||
return ', '.join(result)
|
#TODO handle multiple urls
|
||||||
|
return result[0]
|
||||||
|
|
||||||
|
|
||||||
def get_time(claims, propertyName, defaultValue=None):
|
def get_time(claims, propertyName, defaultValue=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user