浏览代码

HUE-3450 [metadata] Fix typo in query hint API

Romain Rigaux 9 年之前
父节点
当前提交
046e121
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      desktop/libs/metadata/src/metadata/optimizer_api.py

+ 2 - 1
desktop/libs/metadata/src/metadata/optimizer_api.py

@@ -111,6 +111,7 @@ def query_compatibility(request):
   return JsonResponse(response)
 
 
+# Mocked
 @require_POST
 @error_handler
 def query_complexity(request):
@@ -128,7 +129,7 @@ def query_complexity(request):
     comment = ''
 
   response['query_complexity'] = {
-    'level': randome.choice(['LOW', 'MEDIUM', 'HIGH']),
+    'level': random.choice(['LOW', 'MEDIUM', 'HIGH']),
     'comment': comment
   }
   response['status'] = 0