mirror of https://github.com/CIRCL/url-abuse
fix: Call to eupi
parent
bc7a6dbb6d
commit
f3ebe74042
|
@ -479,7 +479,7 @@ def eupi(url, key, q):
|
||||||
if cached is not None:
|
if cached is not None:
|
||||||
return cached
|
return cached
|
||||||
eu = PyEUPI(key, url)
|
eu = PyEUPI(key, url)
|
||||||
response = eu.search_url(q)
|
response = eu.search_url(url=q)
|
||||||
if response.get('results'):
|
if response.get('results'):
|
||||||
r = response.get('results')[0]['tag_label']
|
r = response.get('results')[0]['tag_label']
|
||||||
_cache_set(q, r, 'eupi')
|
_cache_set(q, r, 'eupi')
|
||||||
|
|
Loading…
Reference in New Issue