mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[fix] wikidata: using only the first url
This commit is contained in:
parent
13f36e6675
commit
b0bb94fd37
@ -163,7 +163,8 @@ def get_string(claims, propertyName, defaultValue=None):
|
||||
if len(result) == 0:
|
||||
return defaultValue
|
||||
else:
|
||||
return ', '.join(result)
|
||||
#TODO handle multiple urls
|
||||
return result[0]
|
||||
|
||||
|
||||
def get_time(claims, propertyName, defaultValue=None):
|
||||
|
Loading…
Reference in New Issue
Block a user