From 45a5019ba4fe23914f4e330518d4390f537fc73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 30 Jun 2016 11:00:25 +0200 Subject: [PATCH] Embed project id/name/url in latest assets --- pillar/application/modules/latest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pillar/application/modules/latest.py b/pillar/application/modules/latest.py index 3ac46a5a..ea085149 100644 --- a/pillar/application/modules/latest.py +++ b/pillar/application/modules/latest.py @@ -68,6 +68,7 @@ def latest_assets(): has_public_project, 12) embed_user(latest) + embed_project(latest) return jsonify({'_items': latest}) @@ -81,6 +82,7 @@ def embed_user(latest): 'settings': 0, 'email': 0, '_created': 0, '_updated': 0, '_etag': 0}) + def embed_project(latest): projects = current_app.data.driver.db['projects']