mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
move "page" attribute to data dictionary in Configurator.py
This commit is contained in:
parent
46ab8432d4
commit
56279fad1f
1 changed files with 2 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue