fix: Update no domain data to use False instead of empty string
This commit is contained in:
parent
f5c610b5cf
commit
8c895eddea
@ -24,7 +24,7 @@ def get_website_data(domain):
|
|||||||
connection.close()
|
connection.close()
|
||||||
|
|
||||||
if data == []:
|
if data == []:
|
||||||
return ""
|
return False
|
||||||
|
|
||||||
parsed = data[0][2]
|
parsed = data[0][2]
|
||||||
parsed = json.loads(parsed)
|
parsed = json.loads(parsed)
|
||||||
|
@ -8,7 +8,7 @@ if os.getenv('MAIN_DOMAIN') != None:
|
|||||||
main_domain = os.getenv('MAIN_DOMAIN')
|
main_domain = os.getenv('MAIN_DOMAIN')
|
||||||
|
|
||||||
def render(data,db_object):
|
def render(data,db_object):
|
||||||
if data == "":
|
if data == False:
|
||||||
return redirect("https://" + main_domain + '/claim?domain=' + request.host.split('.')[0])
|
return redirect("https://" + main_domain + '/claim?domain=' + request.host.split('.')[0])
|
||||||
|
|
||||||
# Render as HTML
|
# Render as HTML
|
||||||
|
Loading…
Reference in New Issue
Block a user