You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2019/07/09 04:10:52 UTC

[incubator-superset] branch master updated: * hacky string coercion to fix bug in cli datasource export (#7728)

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 8c9b4b5  * hacky string coercion to fix bug in cli datasource export (#7728)
8c9b4b5 is described below

commit 8c9b4b5cf5dd3b25ec5699b12366811b281ce311
Author: Taylor Miller <Ay...@users.noreply.github.com>
AuthorDate: Mon Jul 8 22:10:45 2019 -0600

    * hacky string coercion to fix bug in cli datasource export (#7728)
---
 superset/models/helpers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/models/helpers.py b/superset/models/helpers.py
index 327cc21..7c39c1c 100644
--- a/superset/models/helpers.py
+++ b/superset/models/helpers.py
@@ -244,7 +244,7 @@ class ImportMixin(object):
                         )
                         for child in getattr(self, c)
                     ],
-                    key=lambda k: sorted(k.items()),
+                    key=lambda k: sorted(str(k.items())),
                 )
 
         return dict_rep