From ba7cd1c22b2339569af8c8c2f21829331bc09d54 Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Fri, 2 Dec 2022 13:42:07 +0100 Subject: [PATCH] removed duplicate line --- regina/db_operation/visualize.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/regina/db_operation/visualize.py b/regina/db_operation/visualize.py index 041e94c..c3d5644 100644 --- a/regina/db_operation/visualize.py +++ b/regina/db_operation/visualize.py @@ -312,7 +312,7 @@ def cleanup_referer(referer: str) -> str: """ m = fullmatch(re_uri_full, referer) if not m: - pdebug(f"cleanup_referer: Could not match referer '{referer}'") + warning(f"cleanup_referer: Could not match referer '{referer}'") return referer # pdebug(f"cleanup_referer: {referer} - {m.groups()}") protocol = m.groups()[0] @@ -326,7 +326,6 @@ def cleanup_referer(referer: str) -> str: if len(domain.split(".")) == 2: # if domain.tld referer = domain.split(".")[0] if not settings["referer_ranking_ignore_subdomain"]: referer = subdomains + referer - if not settings["referer_ranking_ignore_subdomain"]: referer = subdomains + referer if not settings["referer_ranking_ignore_protocol"]: referer = protocol + "://" + referer if not settings["referer_ranking_ignore_location"]: referer += location # pdebug(f"cleanup_referer: cleaned up: {referer}")