Quellcode durchsuchen

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

Romain Rigaux vor 9 Jahren
Ursprung
Commit
073505075e
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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