mirror of
https://github.com/searxng/searxng.git
synced 2025-12-28 14:40:02 +00:00
[fix] pep8 compatibilty
This commit is contained in:
@@ -295,7 +295,7 @@ def get_geolink(claims, propertyName, defaultValue=''):
|
||||
if precision < 0.0003:
|
||||
zoom = 19
|
||||
else:
|
||||
zoom = int(15 - precision*8.8322 + precision*precision*0.625447)
|
||||
zoom = int(15 - precision * 8.8322 + precision * precision * 0.625447)
|
||||
|
||||
url = url_map\
|
||||
.replace('{latitude}', str(value.get('latitude', 0)))\
|
||||
@@ -318,6 +318,6 @@ def get_wikilink(result, wikiid):
|
||||
|
||||
def get_wiki_firstlanguage(result, wikipatternid):
|
||||
for k in result.get('sitelinks', {}).keys():
|
||||
if k.endswith(wikipatternid) and len(k) == (2+len(wikipatternid)):
|
||||
if k.endswith(wikipatternid) and len(k) == (2 + len(wikipatternid)):
|
||||
return k[0:2]
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user