From e7fd25c82e97df69c1ced2d82dfb6ae393ab4303 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 2 Oct 2015 21:15:33 -0400 Subject: [PATCH] [mod] mustache is a bit stupid, modify js to match its lameness --- lib/yunohost/app.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/yunohost/app.py b/lib/yunohost/app.py index f18b45f9..6a38d842 100644 --- a/lib/yunohost/app.py +++ b/lib/yunohost/app.py @@ -729,9 +729,14 @@ def app_debug(app): manifest = json.loads(f.read()) return { - 'name': manifest['name'], - 'services_logs': [{ - x: service_log(x), + 'name': manifest['id'], + 'label': manifest['name'], + 'services': [{ + "name": x, + "logs": [{ + "file_name": y, + "file_content": "\n".join(z), + } for (y, z) in sorted(service_log(x).items(), key=lambda x: x[0])], } for x in sorted(manifest.get("services", []))] }