|
@@ -462,7 +462,8 @@ def get_logs(request):
|
|
|
def _save_notebook(notebook, user):
|
|
def _save_notebook(notebook, user):
|
|
|
if notebook['snippets'][0].get('connector') and notebook['snippets'][0]['connector'].get('dialect'): # TODO Connector unification
|
|
if notebook['snippets'][0].get('connector') and notebook['snippets'][0]['connector'].get('dialect'): # TODO Connector unification
|
|
|
notebook_type = 'query-%(dialect)s' % notebook['snippets'][0]['connector']
|
|
notebook_type = 'query-%(dialect)s' % notebook['snippets'][0]['connector']
|
|
|
- notebook['snippets'][0]['executor']['executables'] = []
|
|
|
|
|
|
|
+ if notebook['snippets'][0] and notebook['snippets'][0].get('executor'):
|
|
|
|
|
+ notebook['snippets'][0]['executor']['executables'] = []
|
|
|
else:
|
|
else:
|
|
|
notebook_type = notebook.get('type', 'notebook')
|
|
notebook_type = notebook.get('type', 'notebook')
|
|
|
|
|
|