Explorar o código

[notebook] Add proper dialect and connector id make_notebook

Romain Rigaux %!s(int64=5) %!d(string=hai) anos
pai
achega
18c1e21259
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/libs/notebook/src/notebook/models.py

+ 1 - 1
desktop/libs/notebook/src/notebook/models.py

@@ -171,7 +171,7 @@ def make_notebook(
 
   if has_connectors():  # To improve
     data['dialect'] = interpreter['dialect']
-    data['type'] = 'phoenix-' + editor_connector # 'flink-' + editor_connector
+    data['type'] = '%s-%s' % (editor_type, editor_connector)  # e.g. 'flink-' + editor_connector
 
   if snippet_properties:
     data['snippets'][0]['properties'].update(snippet_properties)