mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Simplify indentation
This commit is contained in:
parent
28268c58eb
commit
93166741ee
1 changed files with 20 additions and 17 deletions
|
@ -793,7 +793,9 @@ class BackupManager:
|
||||||
self.size_details["apps"][app_key] = 0
|
self.size_details["apps"][app_key] = 0
|
||||||
|
|
||||||
for row in self.paths_to_backup:
|
for row in self.paths_to_backup:
|
||||||
if row["dest"] != "info.json":
|
if row["dest"] == "info.json":
|
||||||
|
continue
|
||||||
|
|
||||||
size = disk_usage(row["source"])
|
size = disk_usage(row["source"])
|
||||||
|
|
||||||
# Add size to apps details
|
# Add size to apps details
|
||||||
|
@ -804,6 +806,7 @@ class BackupManager:
|
||||||
if row["dest"].startswith("apps/" + app_key):
|
if row["dest"].startswith("apps/" + app_key):
|
||||||
self.size_details["apps"][app_key] += size
|
self.size_details["apps"][app_key] += size
|
||||||
break
|
break
|
||||||
|
|
||||||
# OR Add size to the correct system element
|
# OR Add size to the correct system element
|
||||||
elif category == "data" or category == "conf":
|
elif category == "data" or category == "conf":
|
||||||
for system_key in self.system_return:
|
for system_key in self.system_return:
|
||||||
|
|
Loading…
Add table
Reference in a new issue