superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnbod...@apache.org
Subject [incubator-superset] 29/43: fix typo
Date Fri, 11 Jan 2019 02:22:33 GMT
This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch feature--embeddable-charts-pilot
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 6c6eab539ae4d7ee7cae7bdf6f59a9edeb21fb61
Author: Conglei Shi <conglei.shi@airbnb.com>
AuthorDate: Fri Dec 14 12:31:15 2018 -0800

    fix typo
---
 superset/utils/core.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/utils/core.py b/superset/utils/core.py
index 8e17be8..0685302 100644
--- a/superset/utils/core.py
+++ b/superset/utils/core.py
@@ -864,7 +864,7 @@ def get_main_database(session):
     from superset.models import core as models
     return (
         session.query(models.Database)
-        .filter_by(data base_name='main')
+        .filter_by(database_name='main')
         .first()
     )
 
@@ -875,7 +875,7 @@ def is_adhoc_metric(metric):
         'expressionType' in metric and
         (
             (
-                metric['0'] == ADHOC_METRIC_EXPRESSION_TYPES['SIMPLE'] and
+                metric['expressionType'] == ADHOC_METRIC_EXPRESSION_TYPES['SIMPLE'] and
                 metric['column'] and
                 metric['aggregate']
             ) or


Mime
View raw message