mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
[fix] Ensure that is_adhoc_metric returns a boolean (#9062)
This commit is contained in:
@@ -941,7 +941,7 @@ def get_example_database():
|
||||
|
||||
|
||||
def is_adhoc_metric(metric) -> bool:
|
||||
return (
|
||||
return bool(
|
||||
isinstance(metric, dict)
|
||||
and (
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user