fix: Stop rendering of dashboard from breaking UI
This commit is contained in:
parent
a0989cccef
commit
bfbac3a679
2
main.py
2
main.py
@ -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"]))
|
||||
|
||||
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user