This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch john-bodley--fix-is-adhoc-metric
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 4972849327c188b99f28a40f9405e24ee3895289
Author: John Bodley <[email protected]>
AuthorDate: Fri Jan 31 10:34:39 2020 -0800

    [fix] Ensure that is_adhoc_metric returns a boolean
---
 superset/utils/core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/utils/core.py b/superset/utils/core.py
index ce55814..b927742 100644
--- a/superset/utils/core.py
+++ b/superset/utils/core.py
@@ -941,7 +941,7 @@ def get_example_database():
 
 
 def is_adhoc_metric(metric) -> bool:
-    return (
+    return bool(
         isinstance(metric, dict)
         and (
             (

Reply via email to