Oh stupid me

This commit is contained in:
Casey 2024-03-17 13:49:50 +03:00
parent 5bb995a885
commit 178aea523e
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ async def verify_link(url: str) -> float:
if any(fnmatch(domain, pat) for pat in DOMAIN_WHITELIST):
logger.info("Score for %r: 0 (whitelisted domain)", url)
return 0
for score, regex, explanation in REGEX_PATTERNS:
for score, regex, explanation in URL_PATTERNS:
for match in regex.finditer(url):
total_score += score
async with AsyncClient(