Explorar o código

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

Romain Rigaux %!s(int64=9) %!d(string=hai) anos
pai
achega
073505075e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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