fix custom plugins page

*fix indentation that lead to error while showing custom plugin with global context
This commit is contained in:
Jordan Blasenhauer 2024-02-21 15:24:34 +01:00
parent 2dfb49fcfc
commit e9d36fe08d

View file

@ -1389,15 +1389,15 @@ def custom_plugin(plugin: str):
is_used = True
break
return render_template(
Environment(loader=FileSystemLoader(join(sep, "usr", "share", "bunkerweb", "ui", "templates") + "/")).from_string(page.decode("utf-8")),
username=current_user.get_id(),
current_endpoint=plugin,
plugin=curr_plugin,
is_used=is_used,
is_metrics=is_metrics_on,
**app.jinja_env.globals,
)
return render_template(
Environment(loader=FileSystemLoader(join(sep, "usr", "share", "bunkerweb", "ui", "templates") + "/")).from_string(page.decode("utf-8")),
username=current_user.get_id(),
current_endpoint=plugin,
plugin=curr_plugin,
is_used=is_used,
is_metrics=is_metrics_on,
**app.jinja_env.globals,
)
module = db.get_plugin_actions(plugin)