Browse Source

HUE-3889 [core] uuid of documents and json do not match in sample queries

Romain Rigaux 10 năm trước cách đây
mục cha
commit
073505075e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      desktop/core/src/desktop/api2.py

+ 2 - 0
desktop/core/src/desktop/api2.py

@@ -163,6 +163,8 @@ def get_document(request):
       notebook = Notebook(document=document)
       notebook = upgrade_session_properties(request, notebook)
       data = json.loads(notebook.data)
+      if 'uuid' not in data:
+        data['uuid'] = document.uuid
 
     response['data'] = data