mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[hotfix] fixes issue around multidict
This commit is contained in:
parent
1631137da1
commit
327fceefb7
@ -115,8 +115,14 @@ class BaseViz(object):
|
||||
if d[key] is False:
|
||||
del d[key]
|
||||
else:
|
||||
for v in d.getlist(key):
|
||||
od.add(key, v)
|
||||
if isinstance(d, MultiDict):
|
||||
v = d.getlist(key)
|
||||
else:
|
||||
v = d.get(key)
|
||||
if not isinstance(v, list):
|
||||
v = [v]
|
||||
for item in sorted(v):
|
||||
od.add(key, item)
|
||||
href = Href(
|
||||
'/caravel/explore/{self.datasource.type}/'
|
||||
'{self.datasource.id}/'.format(**locals()))
|
||||
|
Loading…
Reference in New Issue
Block a user