Embed project id/name/url in latest assets

This commit is contained in:
Sybren A. Stüvel 2016-06-30 11:00:25 +02:00
parent b601644cca
commit 45a5019ba4

View File

@ -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']