mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Change the way we look if an external plugin page is present or not
This commit is contained in:
parent
2de627d798
commit
85efc2f14c
1 changed files with 1 additions and 4 deletions
|
|
@ -186,16 +186,13 @@ try:
|
|||
plugin_file.update(
|
||||
{
|
||||
"type": "external",
|
||||
"page": False,
|
||||
"page": plugin_path.joinpath("ui").is_dir(),
|
||||
"method": "scheduler",
|
||||
"data": value,
|
||||
"checksum": bytes_hash(value, algorithm="sha256"),
|
||||
}
|
||||
)
|
||||
|
||||
if "ui" in list(plugin_path.iterdir()):
|
||||
plugin_file["page"] = True
|
||||
|
||||
external_plugins.append(plugin_file)
|
||||
external_plugins_ids.append(plugin_file["id"])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue