superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] 01/05: [bugfix] address issue 4206 (#4452)
Date Thu, 22 Feb 2018 02:16:35 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to tag 0.23.0rc4
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 91c5ce908031d8a32bb87ff36580e23e6ed1b803
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Mon Feb 19 09:56:25 2018 -0800

    [bugfix] address issue 4206 (#4452)
    
    closes 4206
    
    (cherry picked from commit 177d7c07e610f868097ad9350c83dcda0030e4fe)
---
 superset/connectors/sqla/views.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/superset/connectors/sqla/views.py b/superset/connectors/sqla/views.py
index f4abf12..3bc31f0 100644
--- a/superset/connectors/sqla/views.py
+++ b/superset/connectors/sqla/views.py
@@ -279,6 +279,8 @@ class TableModelView(DatasourceModelView, DeleteMixin, YamlExportMixin):
 # noqa
         __('Refresh column metadata'),
         'fa-refresh')
     def refresh(self, tables):
+        if not isinstance(tables, list):
+            tables = [tables]
         for t in tables:
             t.fetch_metadata()
         msg = _(

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.

Mime
View raw message