move "page" attribute to data dictionary in Configurator.py

This commit is contained in:
Théophile Diot 2024-04-02 12:40:25 +01:00
parent 46ab8432d4
commit 56279fad1f
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -125,6 +125,8 @@ class Configurator:
self.__logger.warning(f"Ignoring {_type} plugin {file} : {msg}")
return
data["page"] = "ui" in listdir(dirname(file))
if _type != "core":
plugin_content = BytesIO()
with tar_open(fileobj=plugin_content, mode="w:gz", compresslevel=9) as tar:
@ -135,7 +137,6 @@ class Configurator:
data.update(
{
"type": _type,
"page": "ui" in listdir(dirname(file)),
"method": "manual",
"data": value,
"checksum": sha256(value).hexdigest(),