Forráskód Böngészése

HUE-3646 [editor] Fix save results to table and HDFS

Standardize notebook arguments to dict serialized form
Jenny Kim 9 éve
szülő
commit
23985fb9da
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      desktop/libs/notebook/src/notebook/views.py

+ 2 - 2
desktop/libs/notebook/src/notebook/views.py

@@ -137,8 +137,8 @@ def execute_and_watch(request):
   action = request.GET['action']
   destination = request.GET['destination']
 
-  notebook = Notebook(document=Document2.objects.get(id=notebook_id))
-  snippet = notebook.get_data()['snippets'][snippet_id]
+  notebook = Notebook(document=Document2.objects.get(id=notebook_id)).get_data()
+  snippet = notebook['snippets'][snippet_id]
   editor_type = snippet['type']
 
   api = get_api(request, snippet)