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 = ""
|
plugins = ""
|
||||||
dashFunctions = plugins_module.getDashboardFunctions()
|
dashFunctions = plugins_module.getDashboardFunctions()
|
||||||
for function in dashFunctions:
|
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"]))
|
plugins += render.plugin_output_dash(functionOutput,plugins_module.getPluginFunctionReturns(function["plugin"],function["function"]))
|
||||||
|
|
||||||
|
|
||||||
|
@ -302,8 +302,4 @@ def plugin_output_dash(outputs, returns):
|
|||||||
|
|
||||||
for returnOutput in returns:
|
for returnOutput in returns:
|
||||||
html += render_template('components/dashboard-plugin.html', name=returns[returnOutput]["name"], output=outputs[returnOutput])
|
html += render_template('components/dashboard-plugin.html', name=returns[returnOutput]["name"], output=outputs[returnOutput])
|
||||||
|
|
||||||
|
|
||||||
html += f'</div>'
|
|
||||||
html += f'</div>'
|
|
||||||
return html
|
return html
|
Loading…
Reference in New Issue
Block a user