فهرست منبع

[editor] Don't error on missing status for query history

Johan Ahlen 5 سال پیش
والد
کامیت
4768bd45eb
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      desktop/libs/notebook/src/notebook/api.py

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

@@ -630,7 +630,7 @@ def get_history(request):
         'data': {
             'statement': statement[:1001] if statement else '',
             'lastExecuted': notebook['snippets'][0].get('lastExecuted', -1),
-            'status': notebook['snippets'][0]['status'],
+            'status': notebook['snippets'][0].get('status', ''),
             'parentSavedQueryUuid': notebook.get('parentSavedQueryUuid', '')
         } if notebook['snippets'] else {},
         'absoluteUrl': doc.get_absolute_url(),