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}")