fix: Update no domain data to use False instead of empty string
All checks were successful
Build Docker / Build Main Image (push) Successful in 19s
Build Docker / Build SLDs Image (push) Successful in 20s

This commit is contained in:
Nathan Woodburn 2023-11-17 13:06:38 +11:00
parent f5c610b5cf
commit 8c895eddea
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ def get_website_data(domain):
connection.close()
if data == []:
return ""
return False
parsed = data[0][2]
parsed = json.loads(parsed)

View File

@ -8,7 +8,7 @@ if os.getenv('MAIN_DOMAIN') != None:
main_domain = os.getenv('MAIN_DOMAIN')
def render(data,db_object):
if data == "":
if data == False:
return redirect("https://" + main_domain + '/claim?domain=' + request.host.split('.')[0])
# Render as HTML