diff --git a/app/utils/results.py b/app/utils/results.py index 7db53ed..5a06855 100644 --- a/app/utils/results.py +++ b/app/utils/results.py @@ -78,11 +78,10 @@ def get_site_alt(link: str) -> str: continue link = link.replace(site_key, SITE_ALTS[site_key]) + for prefix in SKIP_PREFIX: + link = link.replace(prefix, '//') break - for prefix in SKIP_PREFIX: - link = link.replace(prefix, '//') - return link