mirror of https://github.com/searxng/searxng.git
pylint
This commit is contained in:
parent
df5fb8acc5
commit
d4b5051966
|
@ -55,10 +55,13 @@ def response(resp):
|
|||
|
||||
|
||||
def get_source_code_url(links):
|
||||
source_url = None
|
||||
for k, v in links.items():
|
||||
if k.lower() in ["source", "github", "gitlab"]:
|
||||
return v
|
||||
if not source_url and k.lower() in ["source", "github", "gitlab"]:
|
||||
source_url = v
|
||||
|
||||
for k, v in links.items():
|
||||
if "github" in v or "gitlab" in v:
|
||||
return v
|
||||
if not source_url and ("github" in v or "gitlab" in v):
|
||||
source_url = v
|
||||
|
||||
return source_url
|
||||
|
|
Loading…
Reference in New Issue