fix: Keep link formatting on error page
All checks were successful
Build Docker / Build Main Image (push) Successful in 18s

This commit is contained in:
Nathan Woodburn 2023-11-17 00:27:38 +11:00
parent 46b49d588d
commit e0d2e89c55
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -40,11 +40,12 @@ def error(message):
avatar=account.get_avatar(domain)
host = request.host
links = db.get_users_links(domain)
link_count = len(links)
if links == False:
links = []
return render_template('dash.html',domain=domain,avatar=avatar,host=host,links=links,link_count=len(links),message=message)
links = "<h1>No links created yet</h1>"
else:
links = render.links(links,host)
return render_template('dash.html',domain=domain,avatar=avatar,host=host,links=links,link_count=link_count,message=message)
@app.route('/')
def index():