Embed project id/name/url in latest assets
This commit is contained in:
@@ -68,6 +68,7 @@ def latest_assets():
|
|||||||
has_public_project, 12)
|
has_public_project, 12)
|
||||||
|
|
||||||
embed_user(latest)
|
embed_user(latest)
|
||||||
|
embed_project(latest)
|
||||||
|
|
||||||
return jsonify({'_items': latest})
|
return jsonify({'_items': latest})
|
||||||
|
|
||||||
@@ -81,6 +82,7 @@ def embed_user(latest):
|
|||||||
'settings': 0, 'email': 0,
|
'settings': 0, 'email': 0,
|
||||||
'_created': 0, '_updated': 0, '_etag': 0})
|
'_created': 0, '_updated': 0, '_etag': 0})
|
||||||
|
|
||||||
|
|
||||||
def embed_project(latest):
|
def embed_project(latest):
|
||||||
projects = current_app.data.driver.db['projects']
|
projects = current_app.data.driver.db['projects']
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user