fix: Check for sld not 3ld
All checks were successful
Build Docker / Build Main Image (push) Successful in 29s

This commit is contained in:
Nathan Woodburn 2023-12-21 15:54:35 +11:00
parent 5b4d15a544
commit f36c7edeb6
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -53,7 +53,7 @@ def error(message):
@app.route('/') @app.route('/')
def index(): def index():
# Check if domain is subdomain # Check if domain is subdomain
if request.host.count('.') > 1: if request.host.count('.') > 0:
# See if link exists # See if link exists
link = db.get_link(request.host.split('.')[0]) link = db.get_link(request.host.split('.')[0])
if link != False: if link != False: