From bfbac3a67926b3a685ddfdf4be533bd13d79f896 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 7 Feb 2024 17:27:43 +1100 Subject: [PATCH] fix: Stop rendering of dashboard from breaking UI --- main.py | 2 +- render.py | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 7d1c464..b851fe4 100644 --- a/main.py +++ b/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"])) diff --git a/render.py b/render.py index 6987dba..7db13e8 100644 --- a/render.py +++ b/render.py @@ -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'' - html += f'' + html += render_template('components/dashboard-plugin.html', name=returns[returnOutput]["name"], output=outputs[returnOutput]) return html \ No newline at end of file