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:
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user