Skip to content

Commit

Permalink
[hotfix] filters broken on multi-datasource dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 27, 2017
1 parent 227c66c commit fa9bc92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,8 +1400,8 @@ def visit_column(element, compiler, **kw):
col = flt['col']
op = flt['op']
eq = flt['val']
col_obj = cols[col]
if op in ('in', 'not in'):
col_obj = cols.get(col)
if col_obj and op in ('in', 'not in'):
values = [types.strip("'").strip('"') for types in eq]
values = [utils.js_string_to_num(s) for s in values]
cond = col_obj.sqla_col.in_(values)
Expand Down

0 comments on commit fa9bc92

Please sign in to comment.