浏览代码

HUE-3715 [editor] statements_count of query history not always consistent

Romain Rigaux 9 年之前
父节点
当前提交
5af7945
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      desktop/libs/notebook/src/notebook/api.py

+ 2 - 0
desktop/libs/notebook/src/notebook/api.py

@@ -87,6 +87,8 @@ def execute(request):
       _snippet = [s for s in notebook['snippets'] if s['id'] == snippet['id']][0]
       if 'handle' in response: # No failure
         _snippet['result']['handle'] = response['handle']
+        _snippet['result']['statements_count'] = response['handle']['statements_count']
+        _snippet['result']['statement_id'] = response['handle']['statement_id']
       else:
         _snippet['status'] = 'failed'
       history = _historify(notebook, request.user)