mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add size of apps in backup_info result
This commit is contained in:
parent
507c4271ac
commit
15cfe22b3c
1 changed files with 8 additions and 0 deletions
|
@ -2272,6 +2272,14 @@ def backup_info(name, with_details=False, human_readable=False):
|
||||||
if "hooks" in info.keys():
|
if "hooks" in info.keys():
|
||||||
system_key = "hooks"
|
system_key = "hooks"
|
||||||
|
|
||||||
|
|
||||||
|
if "size_details" in info.keys():
|
||||||
|
for name, key_info in info["apps"].items():
|
||||||
|
if name in info["size_details"]["apps"].keys():
|
||||||
|
key_info["size"] = info["size_details"]["apps"][name]
|
||||||
|
else:
|
||||||
|
key_info["size"] = 0
|
||||||
|
|
||||||
result["apps"] = info["apps"]
|
result["apps"] = info["apps"]
|
||||||
result["system"] = info[system_key]
|
result["system"] = info[system_key]
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Add table
Reference in a new issue