浏览代码

[notebook] Add proper dialect and connector id make_notebook

Romain Rigaux 5 年之前
父节点
当前提交
18c1e21259
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)