|
@@ -322,12 +322,13 @@ def get_history(request):
|
|
|
'name': doc.name,
|
|
'name': doc.name,
|
|
|
'id': doc.id,
|
|
'id': doc.id,
|
|
|
'uuid': doc.uuid,
|
|
'uuid': doc.uuid,
|
|
|
|
|
+ 'type': doc.type,
|
|
|
'data': {
|
|
'data': {
|
|
|
'statement_raw': notebook['snippets'][0]['statement_raw'][:1001],
|
|
'statement_raw': notebook['snippets'][0]['statement_raw'][:1001],
|
|
|
'lastExecuted': notebook['snippets'][0]['lastExecuted'],
|
|
'lastExecuted': notebook['snippets'][0]['lastExecuted'],
|
|
|
'status': notebook['snippets'][0]['status'],
|
|
'status': notebook['snippets'][0]['status'],
|
|
|
'parentUuid': notebook.get('parentUuid', '')
|
|
'parentUuid': notebook.get('parentUuid', '')
|
|
|
- },
|
|
|
|
|
|
|
+ } if notebook['snippets'] else {},
|
|
|
'absoluteUrl': doc.get_absolute_url(),
|
|
'absoluteUrl': doc.get_absolute_url(),
|
|
|
})
|
|
})
|
|
|
else:
|
|
else:
|