fix: Check for sld not 3ld
All checks were successful
Build Docker / Build Main Image (push) Successful in 29s
All checks were successful
Build Docker / Build Main Image (push) Successful in 29s
This commit is contained in:
parent
5b4d15a544
commit
f36c7edeb6
2
main.py
2
main.py
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user