Change the way we look if an external plugin page is present or not

This commit is contained in:
Théophile Diot 2024-03-19 10:25:49 +00:00
parent 2de627d798
commit 85efc2f14c
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -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"])