Przeglądaj źródła

HUE-4122 [editor] Examples should have isSaved set to true

Romain Rigaux 9 lat temu
rodzic
commit
c2f664f

+ 3 - 1
apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py

@@ -314,7 +314,9 @@ class SampleQuery(object):
       except Document2.DoesNotExist:
         # Create document from saved query
         notebook = import_saved_beeswax_query(query)
-        data = notebook.get_json()
+        data = notebook.get_data()
+        data['isSaved'] = True
+        data = json.dumps(data)
 
         # Get or create sample user directories
         home_dir = Directory.objects.get_home_directory(django_user)

Plik diff jest za duży
+ 0 - 0
desktop/libs/notebook/src/notebook/fixtures/initial_notebook_examples.json


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików