fix: Stop rendering of dashboard from breaking UI

This commit is contained in:
Nathan Woodburn 2024-02-07 17:27:43 +11:00
parent a0989cccef
commit bfbac3a679
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 2 additions and 6 deletions

View File

@ -96,7 +96,7 @@ def index():
plugins = ""
dashFunctions = plugins_module.getDashboardFunctions()
for function in dashFunctions:
functionOutput = plugins_module.runPluginFunction(function["plugin"],function["function"],{},account_module.check_account(request.cookies.get("account")))
functionOutput = plugins_module.runPluginFunction(function["plugin"],function["function"],{},request.cookies.get("account"))
plugins += render.plugin_output_dash(functionOutput,plugins_module.getPluginFunctionReturns(function["plugin"],function["function"]))

View File

@ -301,9 +301,5 @@ def plugin_output_dash(outputs, returns):
html = ''
for returnOutput in returns:
html += render_template('components/dashboard-plugin.html', name=returns[returnOutput]["name"], output=outputs[returnOutput])
html += f'</div>'
html += f'</div>'
html += render_template('components/dashboard-plugin.html', name=returns[returnOutput]["name"], output=outputs[returnOutput])
return html