Oh stupid me
This commit is contained in:
parent
5bb995a885
commit
178aea523e
|
@ -61,7 +61,7 @@ async def verify_link(url: str) -> float:
|
||||||
if any(fnmatch(domain, pat) for pat in DOMAIN_WHITELIST):
|
if any(fnmatch(domain, pat) for pat in DOMAIN_WHITELIST):
|
||||||
logger.info("Score for %r: 0 (whitelisted domain)", url)
|
logger.info("Score for %r: 0 (whitelisted domain)", url)
|
||||||
return 0
|
return 0
|
||||||
for score, regex, explanation in REGEX_PATTERNS:
|
for score, regex, explanation in URL_PATTERNS:
|
||||||
for match in regex.finditer(url):
|
for match in regex.finditer(url):
|
||||||
total_score += score
|
total_score += score
|
||||||
async with AsyncClient(
|
async with AsyncClient(
|
||||||
|
|
Loading…
Reference in New Issue