Embed project id/name/url in latest assets
This commit is contained in:
parent
b601644cca
commit
45a5019ba4
@ -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']
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user