From f36c7edeb60b33257663864ad3ce6a66008477ef Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 21 Dec 2023 15:54:35 +1100 Subject: [PATCH] fix: Check for sld not 3ld --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 85728a4..486b90f 100644 --- a/main.py +++ b/main.py @@ -53,7 +53,7 @@ def error(message): @app.route('/') def index(): # Check if domain is subdomain - if request.host.count('.') > 1: + if request.host.count('.') > 0: # See if link exists link = db.get_link(request.host.split('.')[0]) if link != False: