소스 검색

[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)