superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [bugfix] address issue 4206 (#4452)
Date Mon, 19 Feb 2018 17:56:29 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 177d7c0  [bugfix] address issue 4206 (#4452)
177d7c0 is described below

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

    [bugfix] address issue 4206 (#4452)
    
    closes 4206
---
 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