mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Remove details key if it's empty
This commit is contained in:
parent
7c3cce6bf9
commit
9ebb3102cd
1 changed files with 4 additions and 0 deletions
|
@ -384,6 +384,10 @@ class Diagnoser():
|
|||
|
||||
items = list(self.run())
|
||||
|
||||
for item in items:
|
||||
if "details" in item and not item["details"]:
|
||||
del item["details"]
|
||||
|
||||
new_report = {"id": self.id_,
|
||||
"cached_for": self.cache_duration,
|
||||
"items": items}
|
||||
|
|
Loading…
Add table
Reference in a new issue